全局变量 全局变量: c = 1 def funt(num,a): global c #若不加这句会报错 while True: c= c+1 #这里要修改全局变量c print('hiXXXXXX')