from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity='all'
输入上面代码,才能让Jupyter notebook 打印多个结果,否则只会打印最后一个结果过
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity='all'
输入上面代码,才能让Jupyter notebook 打印多个结果,否则只会打印最后一个结果过