Error:'cp950' codec can't encode byte 0x8c
in position 403:illegal multibyte sequence
解決方案:encoding='utf-8'
hosts_para_file = open(os.path.join(tmdPath,'hosts'), 'r+', encoding='utf-8')
Error:'cp950' codec can't encode byte 0x8c
in position 403:illegal multibyte sequence
解決方案:encoding='utf-8'
hosts_para_file = open(os.path.join(tmdPath,'hosts'), 'r+', encoding='utf-8')