摘要: 注意事项:1. python在写文件之后必须正确关闭文件,否则会输入更多的乱码。2. python在读写文件之间切换时必须重新打开文件(这点和其他语言一样c++) 1 fo = open("abc.txt", "a+") 2 #print "Name of the file: ", fo.name ... 阅读全文
posted @ 2015-10-13 10:39 清水汪汪 阅读(141) 评论(0) 推荐(0) 编辑