【问题标题】:Is there a way to censor an input in python? [duplicate]有没有办法审查python中的输入? [复制]
【发布时间】:2017-05-07 11:58:45
【问题描述】:

我想写一个有登录名的程序,但我不想让别人看到密码。那么我可以让它以某种方式被审查吗?

【问题讨论】:

标签: python input


【解决方案1】:

有!看看getpass.getpass

【讨论】:

    猜你喜欢
    • 2020-03-31
    • 1970-01-01
    • 1970-01-01
    • 2015-04-25
    • 2010-10-18
    • 1970-01-01
    • 2022-12-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多