out = File.new("captains.log", "w") # Process as needed... out.close 這裡還有一個open方法,它的最簡單的形式是和new同義的:. Ruby程式碼.
確定! 回上一頁