mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Fix example code in curses tutorial (#126446)
This commit is contained in:
parent
3d83c1ec61
commit
5fbe23ee4e
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue