python3.4讀寫(xiě).txt文件出錯(cuò),而。py文件正常?
>>> f=open("D:\\python34\2.txt",'w')
Traceback (most recent call last):
? File "<pyshell#19>", line 1, in <module>
??? f=open("D:\\python34\2.txt",'w')
OSError: [Errno 22] Invalid argument: 'D:\\python34\x02.txt'
>>> f=open("D:\\python34\safdsf.py",'w')
2017-09-04
修改成:D:\\python34\\02.txt