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 阅读(410)
评论(0) 编辑 收藏 所属分类:
其它