added python version of hello_world
This commit is contained in:
parent
da3ee678a8
commit
0e6152a741
18
basics/hello_world.py
Normal file
18
basics/hello_world.py
Normal file
@ -0,0 +1,18 @@
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import curses
|
||||
|
||||
|
||||
def hello_world(stdscr):
|
||||
stdscr.addstr(0, 0, "Hello World !!!")
|
||||
stdscr.refresh()
|
||||
stdscr.getch()
|
||||
|
||||
|
||||
def main():
|
||||
curses.wrapper(hello_world)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
Loading…
Reference in New Issue
Block a user