阅读文档我经常遇到我想要运行的doctests.假设你想在Jupyter笔记本中运行以下代码:
>>> a = 2 >>> b = 3 >>> c = a + b
最快的方法是什么?
python doctest jupyter-notebook
doctest ×1
jupyter-notebook ×1
python ×1