摘要: 外部不能访问函数内部变量 def fun1(): x = 1 print(x) 结果 Traceback (most recent call last): File "", line 1, in print(x) NameError: name 'x' is not defined 函数内部能够访问 阅读全文
posted @ 2019-04-01 22:16 苏黎世的从前 阅读(138) 评论(0) 推荐(0) 编辑