I am trying to figure out how to suppress the display of user input on stdout.
raw_input()
followed by any print statement preserves what the user typed in. getpass()
does not show what the user typed, but it does preserve the "Password:" prompt.
To fix this, I would like to only remove the last line (which would remove the newline from the end of the line as well).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…