摘要: 1、编码 #!/usr/bin/python # -*- coding: UTF-8 -*- 2、文件 # 打开一个文件 fo = open("foo.txt", "w") print "文件名: ", fo.name # 关闭打开的文件 fo.close() 属性描述 file.closed 返回 阅读全文
posted @ 2022-12-29 11:07 CiscoLee 阅读(17) 评论(0) 推荐(0) 编辑