UnicodeDecodeError:'gbk' codec can't decode byte 0x94 in position 162: illegal multibyte sequence
需求:把指定目录下的文件复制到当前目录命名为copy在处理文件复制过程中,出现以下报错‘gbk’codeccan’tdecodebyte0x94inposition162:illegalmultibytesequencewithopen('D:\sample.txt','r+')asf1:withopen('D:\copy.txt','w+')asf2:f2.write(f1.read())Uni