语法错误#

具有无效 Python 语法的示例脚本

Traceback (most recent call last):
  File "/home/circleci/project/examples/no_output/plot_syntaxerror.py", line 12
    Invalid Python code
            ^^^^^^
SyntaxError: invalid syntax

"""
Example with SyntaxError
========================

Sphinx-Gallery uses Python's AST parser, thus you need to have written
valid python code for Sphinx-Gallery to parse it. If your script has a
SyntaxError you'll be presented the traceback and the original code.
"""
# Code source: Óscar Nájera
# License: BSD 3 clause

Invalid Python code

脚本的总运行时间:(0 分钟 0.003 秒)

估计内存使用量:543 MB

由 Sphinx-Gallery 生成的画廊