【问题标题】:Handling password in jupyter notebook在 jupyter notebook 中处理密码
【发布时间】:2022-01-05 13:43:47
【问题描述】:

如何不将密码作为纯文本存储在 jupyter notebook 中?

使用input()remove-output 标签?

【问题讨论】:

    标签: python jupyter-notebook passwords


    【解决方案1】:

    最简单的方法是使用getpass标准库:

    from getpass import getpass
    
    pw = getpass('Input password: ')
    

    【讨论】:

      猜你喜欢
      • 2018-04-19
      • 2017-02-07
      • 1970-01-01
      • 1970-01-01
      • 2016-07-18
      • 2021-01-25
      • 1970-01-01
      • 2023-03-04
      • 2020-06-20
      相关资源
      最近更新 更多