def p_num():
global num
num = 10
print (num)
num = 5
p_num()
print(num)
转载于:https://www.cnblogs.com/Mysterious/p/7376541.html
def p_num():
global num
num = 10
print (num)
num = 5
p_num()
print(num)
转载于:https://www.cnblogs.com/Mysterious/p/7376541.html