mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[3.13] Fix example code in curses tutorial (GH-126446) (#132362)
Co-authored-by: Jiayu Yi <yijiayu@gmail.com>
This commit is contained in:
parent
8e017f2f48
commit
fc85256f89
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