真是奇怪了,在itermi里
print(data)
就能直接运行,而在sublime里,就非得写成这样
print(data.encode(‘utf-8‘))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 820-823: ordinal not in range(128)
时间: 2024-10-06 01:24:05
真是奇怪了,在itermi里
print(data)
就能直接运行,而在sublime里,就非得写成这样
print(data.encode(‘utf-8‘))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 820-823: ordinal not in range(128)