def fun(): global s s='eee'def aun(): fun()#调用函数 print(s)if __name__ == '__main__': aun()其中global s与gl.s用法相同