小编H3N*_*DRX的帖子

无法在python 2.7.x控制台中输入(čćšžđ)

所以,我通过互联网搜索,这是非常令人沮丧的.当我尝试搜索时,我会得到关于如何解码和编码文件的解释.但我对此并不感兴趣.我知道这是可能的,因为我能够做到这一点.我不知道发生了什么.此外,我已经尝试重新安装python.更改配置IDLE等下的选项.在我的笔记本电脑上没有任何问题.我可以做这个:

>> a = '?'
>>
>> print a
>> ?
Run Code Online (Sandbox Code Playgroud)

在我的电脑上,我得到:

 >> a = '?'
 >> Unsupported characters in input
Run Code Online (Sandbox Code Playgroud)

我再说一遍,我不是在谈论程序中的编码.我在谈论Python控制台,它可以在我的笔记本电脑上工作,并在以前的机器上工作.必须有一个解决这个问题的方法.

另外,看看这个:

>>> a = u'ç'
>>> a
u'\xe7'
>>> print a
ç
>>> a = u'?'
Unsupported characters in input

>>> 
Run Code Online (Sandbox Code Playgroud)

python python-idle python-2.7

5
推荐指数
1
解决办法
859
查看次数

标签 统计

python ×1

python-2.7 ×1

python-idle ×1