writelines() argument must be a sequence of strings原因是参数前面有u',如【u'a',u'b'】去掉u'就行了 .encode('raw_unicode_escape')