1,寫文件時,一定要在變量與要寫的內容間有空格,否則不能正常寫入。
錯誤的代碼如下:
open(OUTFILE, ">outfile.txt");
print OUTFILE("Here is an output line.\n");
正確的代碼如下:
open(OUTFILE, ">outfile.txt");
print OUTFILE ("Here is an output line.\n");
看明白了嗎?
2,
posted on 2009-06-04 00:48
Robin's Programming World 閱讀(418)
評論(0) 編輯 收藏 所屬分類:
其它