摘要: try: with open('data.txt','w') as f: for each_line in f: print(each_line)except OSError as reason: print('出错啦'+str(reason)) 报错not readable r只读,r+读写,不创 阅读全文
posted @ 2017-01-25 12:45 喵喵帕斯 阅读(7387) 评论(0) 推荐(0) 编辑