#//simple.pyprint 'hello'spam = 1 #///////////////////////////////////////////////////////////////////////////#//Main.pyimport simple # first import: loads and runs file's codeprint simple.spam # assignment makes an attributesimple.spam = 2 # change attribute in moduleimport simple # just fetches already-loaded moduleprint simple.spam # code wasn't rerun: attribute unchanged
Name (required)
email (will not be published) (required)
Website