import my_module my_module.do_something_with_my_globals(globals())print globals()
def do_something_with_my_globals(glob): # glob is simply a dict. glob["foo"] = "bar"
沒有留言:
張貼留言