标签:int print 作用 作用域 def dad on() pre and
x = 0def grandpa(): x = 1 print(x) def dad(): x = 2 print(x) def son(): x = 3 print(x) son() dad()grandpa()
局部作用域
原文地址:https://www.cnblogs.com/gaoxu366/p/9426105.html