在jupyter中不加print,直接默认打印所有结果的输出。加上如下代码:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
在jupyter中不加print,直接默认打印所有结果的输出。加上如下代码:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"