代碼:
報(bào)錯(cuò):
Traceback (most recent call last):
? File "F:\python練習(xí)\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不能添加引號(hào)