显示所有变量 from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" # 显示所有变量 from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all"