Python内置函数
摘要:# 作用域相关 #locals() # 以字典形式返回当前位置的全部局部变量 #例: def locals_test(): a = 1 b = 2 print(locals()) # 打印结果:{'a': 1, 'b': 2} locals_test() ''' globals() # 以字典形式返
阅读全文
posted @ 2019-05-26 15:41
posted @ 2019-05-26 15:41
posted @ 2019-05-19 20:20
posted @ 2019-05-19 13:17
posted @ 2019-05-09 13:30