locals ()locals 函数更新并以字典形式返回当前全部局部变量例子:#1a = 9b = 4print(locals())#2for i in range(2): c = 8 print(locals())#3 def ...
確定! 回上一頁