我试图使用以下代码导入lex:
from pygments import lex但它只返回了一个错误:
Traceback (most recent call last):
File "D:\samp.py", line 1, in <module>
from pygments import lex
File "C:\Python32\lib\site-packages\pygments-2.0.2-py3.2.egg\pygments\__init__.py", line 37, in <module>
from pygments.util import StringIO, BytesIO
File "C:\Python32\lib\site-packages\pygments-2.0.2-py3.2.egg\pygments\util.py", line 226
return u'[%s-%s]' % (unichr(a), unichr(b))
^
SyntaxError: invalid syntax(我在空闲时使用Python3.2.3)
这有什么解决办法吗?
发布于 2015-08-15 01:32:53
https://stackoverflow.com/questions/32020200
复制相似问题