oop - Accessing an object created in another module using python -


How to use the object created in the second module using a python

< Div class = "post-text" itemprop = "text">

Yes,

that's right, import from module

module exapmle:

  # custom module: desired_object = any def my_func (): global desired_ object desired_ object = some object ()   

but sure Make the desired_ object come from 'my_func Before you "should be called"

Comments