Closed Walkman100 closed 8 years ago
Looking at: https://stackoverflow.com/q/510357/2999220
I have tested:
line_of_input = sys.stdin.read(1)
but this does the same as raw_input()
, except it only returns the first character.
http://rosettacode.org/wiki/Keyboard_input/Keypress_check#Python has a windows-only solution
In porting NumeralConverter to python, I haven't found a way to read a single character from STDIN - DotNet has:
Whereas python27 only has
which waits for a
\n
before continuing.