所以我有2个文件:
document_a.py和 document_b.py
document_a.py有以下代码:
from document_b import hello
age = 31
hello('Eric')
document_b.py有以下代码:
def hello(name):
print('Hello',name)
print('age:',age)
如何获取 document_a.py 上的age变量以传递给def hello(name): on document_b.py?