About 216,000 results
Open links in new tab
  1. python - How to read keyboard input? - Stack Overflow

    As blocking on keyboard input (since the input() function blocks) is frequently not what we want to do (we'd frequently like to keep doing other stuff), here's a very-stripped-down multi-threaded …

  2. python - Getting user input - Stack Overflow

    In Python 3, it's just input() - caution : there is an input method in 2.x too, but it eval ()s the input and is therefore evil.

  3. python - How to detect key presses? - Stack Overflow

    I am making a stopwatch type program in Python and I would like to know how to detect if a key is pressed (such as p for pause and s for stop), and I would not like it to be something like …

  4. python - How to get the input from the Tkinter Text Widget?

    Mar 21, 2020 · How to get Tkinter input from the Text widget? EDIT I asked this question to help others with the same problem - that is the reason why there is no example code. This issue …

  5. python - How can I read inputs as numbers? - Stack Overflow

    Dec 8, 2013 · python python-3.x python-2.7 input int edited Apr 28, 2019 at 1:05 smci 34.1k 21 117 152

  6. python - User input and command line arguments - Stack Overflow

    How do I have a Python script that can accept user input and how do I make it read in arguments if run from the command line?

  7. Python 2.7 getting user input and manipulating as string without ...

    In Python 2 we use the raw_input() function. It waits for the user to type some input and press return and we need to store the value in a variable by casting as our desire data type.

  8. python - Getting a hidden password input - Stack Overflow

    Also from personal experience, even handing stars can get complicated fast, dealing with control characters, unicode, kill lines, or even a simple... turning off echo (tab of backspace at start of …

  9. python - How do I read from stdin? - Stack Overflow

    How do I read from standard input (stdin)?There's a few ways to do it. sys.stdin is a file-like object on which you can call functions read or readlines if you want to read everything or you want to …

  10. How to give jupyter cell standard input in python?

    I am trying to run a program on a jupyter notebook that accepts user input, and I cannot figure out how to get it to read standard input. For example, if I run the code with shift-enter: a = input()