Guest User

Untitled

a guest
Jan 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. in __init__.py:
  2. print('************')
  3.  
  4. in y__init__.py:
  5. if __name__ == '__main__':
  6. print('__init__.py directly exectuted!')
  7. else:
  8. print("be imported!")
  9.  
  10. in helloWord.py:
  11. import y__init__
  12. print("hello word!")
  13. in main.py:
  14. from some_modules import helloWord
  15.  
  16. ************
  17. be imported!
  18. hello word!
Add Comment
Please, Sign In to add comment