注意
转到末尾 下载完整的示例代码。或在您的浏览器中通过 JupyterLite 或 Binder 运行此示例
语法错误#
具有无效 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