gpt4 book ai didi

python - 我可以在 Python 3.6 之前的版本中使用 secrets 模块吗?

转载 作者:太空狗 更新时间:2023-10-30 01:31:45 26 4
gpt4 key购买 nike

Python 的 secrets模块是在 3.6 版本中引入的。我正在使用 Python 3.4 开发一个应用程序。有没有办法在 3.4 环境中导入 secret 模块(a la from __future__ import print)?

如果没有,是否有具有类似功能的第 3 方模块?

最佳答案

Python 版本 2.7、3.4 和 3.5 的 secrets 模块的反向移植现在存在:(名称有点困惑)python2-secrets .

安装:

pip install python2-secrets

关于python - 我可以在 Python 3.6 之前的版本中使用 secrets 模块吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49741175/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com