When you do an import say from .config import *
, the variable a
is imported as a local scope. Any modification to a
will happen within the scope in abc.py
NOT in config.py
whereas the call to update_a()
and print_a()
is modifying the variable a
within config.py
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…