python 在Linux上执行,版本是2.7python中的文件操作,写一个换行符,出现了如下错误:Traceback (most recent call last): File "parse_new.py", line 130, in <module> main() File "parse_new.py", line 102, in main
f.write("\n")
TypeError: must be unicode, not str
添加回答
举报
0/150
提交
取消