【发布时间】:2022-01-05 13:43:47
【问题描述】:
如何不将密码作为纯文本存储在 jupyter notebook 中?
使用input() 和remove-output 标签?
【问题讨论】:
标签: python jupyter-notebook passwords
如何不将密码作为纯文本存储在 jupyter notebook 中?
使用input() 和remove-output 标签?
【问题讨论】:
标签: python jupyter-notebook passwords
最简单的方法是使用getpass标准库:
from getpass import getpass
pw = getpass('Input password: ')
【讨论】: