The Python implementation refers to classes and methods in other.py files
- 2020-08-22 22:12:34
- OfStack
#HelloWorld is the file name and Hello is the class
from HelloWorld import Hello
Call the methods of the Hello class:
>>> h = Hello()
>>> h.hello()
Hello, world # The output
#>>> Hello().hello()
#Hello, world
Attachment: HelloWorld. py file contents