python 函数内使用全局变量时间:2023-03-10 04:34:39 x = def change_global(): global x x = x + change_global() print(x) result: 2