mirror of
https://github.com/python/cpython.git
synced 2026-01-27 05:05:50 +00:00
Fix example code in curses tutorial (#126446)
This commit is contained in:
parent
3d83c1ec61
commit
5fbe23ee4e
@ -145,8 +145,8 @@ importing the :func:`curses.wrapper` function and using it like this::
|
||||
v = i-10
|
||||
stdscr.addstr(i, 0, '10 divided by {} is {}'.format(v, 10/v))
|
||||
|
||||
stdscr.refresh()
|
||||
stdscr.getkey()
|
||||
stdscr.refresh()
|
||||
stdscr.getkey()
|
||||
|
||||
wrapper(main)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user