Python 3.5.4 (default, Jan 10 2018, 14:59:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print('tango')
tango
>>> print('主题')
File "<stdin>", line 0
^
SyntaxError: 'ascii' codec can't decode byte 0xe4 in position 7: ordinal not in range(128)
系统版本:
>cat /etc/redhat-release
CentOS Linux release 6.2 (Final)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print('tango')
tango
>>> print('主题')
File "<stdin>", line 0
^
SyntaxError: 'ascii' codec can't decode byte 0xe4 in position 7: ordinal not in range(128)
系统版本:
>cat /etc/redhat-release
CentOS Linux release 6.2 (Final)