标签: python-3.x
我收到错误“ utf-8”。
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 5: invalid continuation byte*
我不知道为什么会这样。我正在尝试:
path = "/Users/Lieve/Desktop/" contents = open(path+"100_names.txt") lines = contents.readlines()