例如 要改变count全局变量 def MyFun(): global count count = 10 print(count) 加上global 关键字即可 内嵌函数:fun2() 闭包:FunY(y)就是一个闭包