##注意parameter的值是variable時,不會跟著variable的值來改變
t = 0
def p(a=t):
print("a=%d"%a)
def main():
global t
t = 100
p()
print("t=%d"%t)
if __name__ == "__main__":
main()
##############Output#############
a=0
t=100
t = 0
def p(a=t):
print("a=%d"%a)
def main():
global t
t = 100
p()
print("t=%d"%t)
if __name__ == "__main__":
main()
##############Output#############
a=0
t=100