python writeLines遇到的问题
2018-12-12 本文已影响0人
九乡河的小香瓜
writelines() argument must be a sequence of strings
原因是参数前面有u',如【u'a',u'b'】
去掉u'就行了 .encode('raw_unicode_escape')
writelines() argument must be a sequence of strings
原因是参数前面有u',如【u'a',u'b'】
去掉u'就行了 .encode('raw_unicode_escape')