Jerry~Mouse 发表于 2021-10-8 21:01:28

也是关于open

请问
>>> f.open('D:\\teio.txt','w')
Traceback (most recent call last):
File "<pyshell#104>", line 1, in <module>
    f.open('D:\\teio.txt','w')
AttributeError: '_io.TextIOWrapper' object has no attribute 'open'

这个是错在哪里呢

冬雪雪冬 发表于 2021-10-8 21:13:06

f = open('D:\\teio.txt','w')

Jerry~Mouse 发表于 2021-10-8 21:23:13

冬雪雪冬 发表于 2021-10-8 21:13
f = open('D:\\teio.txt','w')

谢谢
页: [1]
查看完整版本: 也是关于open