About 50 results
Open links in new tab
  1. python - User input and command line arguments - Stack Overflow

    634 To read user input you can try the cmd module for easily creating a mini-command line interpreter (with help texts and autocompletion) and raw_input (input for Python 3+) for reading a line of text …

  2. 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 example …

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

    Dec 8, 2013 · Python 2.x There were two functions to get user input, called input and raw_input. The difference between them is, raw_input doesn't evaluate the data and returns as it is, in string form. …

  4. python - Keyboard input with timeout? - Stack Overflow

    If you intend to read from standard input again after this call, it's a good idea to do termios.tcflush(sys.stdin, termios.TCIFLUSH) in the case that the read timed out. Otherwise, if the …

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

    Aug 16, 2021 · By default, the password input will be fully invisible. If you want to show asterisks in place of the user typed password, use the echo_char parameter added in Python 3.14.

  6. python - Prompt user for file input - Stack Overflow

    In your case, this will prompt for a file path to be input. If you add an argument to this function, it prints something without a newline before input is requested, for example:

  7. python - Getting user input - Stack Overflow

    Do you want the file name to come from user input or a command line argument? (e.g. python myScript.py inputfile.txt)

  8. Command line input in Python - Stack Overflow

    For interactive user input (or piped commands or redirected input) Use raw_input in Python 2.x, and input in Python 3. (These are built in, so you don't need to import anything to use them; you just have …

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

    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 had been …

  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()