函数变量的作用域 代码var = 123 def func(): var = 456 print(var) func() print(var)运行 定义全局变量代码var1 = 123 def func(): global v... 3年前•Python笔记本 0