Replace a string of characters with some special characters?
when i input so开发者_StackOverflow社区me texts/strings, i want them to appear either as hidden or with some special characters(as we do while entering password). . . how can i implement it in a python program? pls help me.
Use getpass
import getpass
getpass.getpass()
You want the getpass
module.
精彩评论