python import module problem
from xxx import yyy
from xxx import *
import xxx
import has the function of preventing the module from being re-imported. If the referenced module is changed during the running process, it needs to be executed.
from imp import reload
reload(xxx)
lib.py
age=10
from lib import age
import lib
age = 5 #定义的局部变量,而不是模块中的变量
print(age)
print(lib.age)