注意
前往結尾以下載完整的範例程式碼。或透過 JupyterLite 或 Binder 在您的瀏覽器中執行此範例
SyntaxError#
具有無效 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