我只是想用python 3.4创建一个新文件,但每当我尝试它时都会给我一个TypeError:
>>> f = open("test.txt","w")
Traceback (most recent call last):
File "<pyshell#22>", line 1, in <module>
f = open("test.txt","w")
TypeError: an integer is required (got type str)
请帮助,我已经尽力解决这个问题,但它没有赢得
(对不起,如果它显而易见,我对此有点新鲜)