我在制造一个不和谐的机器人这是代码和错误
f = open("rules.txt","r")
rules = f.readlines()
错误:
Traceback (most recent call last):
File "C:\Users\Windows10\OneDrive\Desktop\YourBot\bot.py", line 8, in <module>
rules = f.readlines()
File "C:\Users\Windows10\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7: character maps to <undefined>
请帮帮我。。
1条答案
按热度按时间pkbketx91#
请先尝试:
第二: