开发者

Replace a string of characters with some special characters?

开发者 https://www.devze.com 2022-12-22 02:50 出处:网络
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 pytho

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

精彩评论

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

关注公众号