I want to write a small project,it needs you to input your id and passwd,but i need a function to replace the passwd with '*' while you inputing passwd,i only know the raw_input() can input something,so i cannot solve the problem. how to write the function?
Try this:
import getpass
pw = getpass.getpass()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With