- 博客(2)
- 收藏
- 关注
原创 Python 打开文件报错
以UTF-8打开方式:with open("0621.txt",'r',encoding = "utf-8")as f:运行报错:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 5517: invalid start byte将打开方式换成with open("0621.txt",'r',encoding = "gbk")as f:运行报错:UnicodeD
2022-06-23 14:56:25 488 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人