开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜