Python异常(2)-(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \...
早上写个了写文件的脚本,报错了withopen('C:\Users\yugui\OneDrive\python\odps_clean.txt','w',encoding='gbk')asfile:file.write('\n'.join(origin_table_name))一开始还以为是编码的问题,改了几次,发现不行,查了下,是转义字符的问题''是转义字符,'\U'就变成unicode编码了,导