报错代码
with open("./KFC_location.txt",'w',encodings='utf-8') as fp:
fp.write(text_page)
解决方式:把encodings的s去掉
with open("./KFC_location.txt",'w',encoding='utf-8') as fp:
fp.write(text_page)
with open("./KFC_location.txt",'w',encodings='utf-8') as fp:
fp.write(text_page)
with open("./KFC_location.txt",'w',encoding='utf-8') as fp:
fp.write(text_page)