所以我有一个程序,其核心是这个
def first():
global myvar
myvar = "thing"
def second():
print myvar
但是当它没有发生任何事情时,老实说我不知道还能做什么
答案 0 :(得分:1)
def first():
global myvar
myvar = "thing"
def second():
print myvar
second() #==>call the function or
return second() #return the second function
first()