name="jack" def a(): name="tom" def b(): name="cat" print(name) return b c=a() print(c) c() a()()
c()和a()()都是输出"cat"
转载于:https://www.cnblogs.com/wangdamao/p/10438563.html
name="jack" def a(): name="tom" def b(): name="cat" print(name) return b c=a() print(c) c() a()()
c()和a()()都是输出"cat"
转载于:https://www.cnblogs.com/wangdamao/p/10438563.html