IDLE 3无法打印正确的语法

时间:2017-02-08 16:11:01

标签: python-3.x python-idle

在这里帮忙......我的idle3突然无法处理打印命令。我有以下错误,任何修复它的线索?问题出在哪里?

>>> print("Hello World")
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    print("Hello World")
  File "/usr/lib/python3.4/codecs.py", line 374, in write
    self.stream.write(data)
  File "/usr/lib/python3.4/idlelib/PyShell.py", line 1344, in write
    raise TypeError('must be str, not ' + type(s).__name__)
TypeError: must be str, not bytes

系统信息:

Python 3.4.3 (default, Nov 17 2016, 01:08:31) 
[GCC 4.8.4] on linux
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================

0 个答案:

没有答案