唉,天棚里现在还没有这样的窗格。向他们发送反馈请求(帮助->反馈/错误),他们可能会在将来将其包括在内。有两种选择:
1)可以使用PyCharm这样的程序,它有一个工作区窗口。在
2)您可以生成自己的“工作区”功能:# First note the variables present before we make any. Only variables made after this line are part of the "workspace"
locvars = locals().copy()
# Print out an list of variables that aren't python internal. We will call the workspace the collection
# of variables which were made after the first instruction executed.
# This function expects the calling namespace to have a variable locvars which is a copy of locals taken before
# any variables were made for inclusion into the "workspace".
def showlocals():
# Get the calling frame's locals
import inspect
locs = inspect.currentframe().f_back.f_locals
locvars = locs['locvars']
# Get the list of variables