f=open(*D:/WORK/project development/Python Project\
/File System/testfile.txt*,*r+*)
#f=open(*testfile.txt*,*r+*)
f.seek(0)
f.wirte(*yes*)
#f.write(*very good*)
f.close()
报错:
Traceback (most recent call last):
File "D:\WORK\project development\Python Project\File System\openfile.py", line 8, in <module>
f.wirte(*yes*)
AttributeError: *_io.TextIOWrapper* object has no attribute *wirte*
/File System/testfile.txt*,*r+*)
#f=open(*testfile.txt*,*r+*)
f.seek(0)
f.wirte(*yes*)
#f.write(*very good*)
f.close()
报错:
Traceback (most recent call last):
File "D:\WORK\project development\Python Project\File System\openfile.py", line 8, in <module>
f.wirte(*yes*)
AttributeError: *_io.TextIOWrapper* object has no attribute *wirte*