代码:
报错:
Traceback (most recent call last):
File "F:\python练习\302-2.py", line 14, in <module>
fo = open("earpa001_count.txt","w","encoding=utf-8")
TypeError: 'str' object cannot be interpreted as an integer
问题原因:
粗心大意,encoding不能添加引号
代码:
报错:
Traceback (most recent call last):
File "F:\python练习\302-2.py", line 14, in <module>
fo = open("earpa001_count.txt","w","encoding=utf-8")
TypeError: 'str' object cannot be interpreted as an integer
问题原因:
粗心大意,encoding不能添加引号