当我在无限循环中将某个字符串写入文件时,例如:
file = open('txt.txt', 'w') while 1: file.write('colour')
它给了我所有这些中文文本: 图片
为什么会发生这种情况?
python-3.5
python-3.5 ×1