1.调试,input('中文'),乱码2.调试,print('中文'),正常3.不调试,input('中文'),正常4.不调试,print('中文'),正常
页面编码方式已经加了“# -- coding:utf-8 --”
这是调试模式下的截图:
人生最曼妙的风景,竟是内心的淡定与从容!
Try changing UTF8 to GBK and see if the characters are garbled. If the code is not garbled, it means Windows CMD is to blame, and you can just ignore it.
Try changing UTF8 to GBK and see if the characters are garbled. If the code is not garbled, it means Windows CMD is to blame, and you can just ignore it.