Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
の入力をどのように隠しますraw_inputか? たとえば、私は欲しい:
raw_input
password = raw_input("Password: ")
することが
Password: ******** #or Password: #hide the characters (i.e. no echo)
文字列を表示する代わりに。どうすればそうできますか?
使用getpass:
getpass
import getpass password = getpass.getpass('Password: ')