添加新日志

Syntax Highlight - [测试分类]

from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter

code = 'print "Hello World"'
print highlight(code, PythonLexer(), HtmlFormatter())

就Python 语言本身的学习参考资源

常备::

建议放在手边随时看的: * Python Tutorial 中文版

System Message: ERROR/3 (<string>, line 15)

Unexpected indentation.

System Message: WARNING/2 (<string>, line 18)

Block quote ends without a blank line; unexpected unindent.
  • 简明 Python 教程 中文版

System Message: WARNING/2 (<string>, line 19)

Bullet list ends without a blank line; unexpected unindent.

System Message: WARNING/2 (<string>, line 22)

Block quote ends without a blank line; unexpected unindent.
  • Python 绝对简明手册

System Message: WARNING/2 (<string>, line 23)

Bullet list ends without a blank line; unexpected unindent.

System Message: WARNING/2 (<string>, line 26)

Block quote ends without a blank line; unexpected unindent.
  • Py标准库手册

System Message: WARNING/2 (<string>, line 27)

Bullet list ends without a blank line; unexpected unindent.

    评论

  • hhh

发表评论

Name *

Email (不会显示,当博主回复您时会发邮件)

Homepage

版权声明:本站文章使用《署名 3.0 Unported》授权,转载时请注意标明文章原始出处和作者信息及本声明
Powered By hupo
Original Template: GimpStyle theme designed by Horacio Bella