【发布时间】:2021-03-22 11:59:01
【问题描述】:
我在 Jupyter 和 Colab 笔记本中的多个 python 实例中看到了这个#@save。请说明该运算符的用法、重要性以及使用方法。下面是一个例子。
#@save
import collections
from collections import defaultdict
from IPython import display
【问题讨论】:
-
# 是注释,所以 python 忽略它。但是 co,ab 可能会使用它。
#!python, 'shebang' 被 linux shell 使用。
标签: python jupyter-notebook jupyter google-colaboratory