乱码 - VS2013+PTVS,python编码问题
黄舟
黄舟 2017-04-18 10:32:47
0
1
454

1.调试,input('中文'),乱码
2.调试,print('中文'),正常
3.不调试,input('中文'),正常
4.不调试,print('中文'),正常

页面编码方式已经加了“# -- coding:utf-8 --”

这是调试模式下的截图:

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
阿神

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!