IT老董博客

  • 首页
IT老董博客
一个简简单单计算机散修的生活博客
未分类

宝塔自动搭建JupyterHub后无法登录问题

  解决方法: 将自带的PAM认证更改为固定认证:c.JupyterHub.authenticator_class = 'jupyterhub.auth.DummyAuthenticator' 修改管理员用户为admin,密码为123,注释原有的管理员账号 在宝塔Docker中重启服务 /www/dk_project/dk_app/dk_jupyterhub/jupyterhub_config.py c = get_config() # 管理员用户列表 #c.Authenticator.admin_use…

2025年9月16日 0人点赞 阅读全文
Python

Python学习笔记:维吉尼亚密码加解密

  def default_key(k): for q in range(len(k)): if not k[q].isalpha(): print("\n=======程序终止=======\n密钥仅限输入字母!\n=======程序终止=======\n") return 0 def default_run(p, k): #使K与P等长 res = [] k_len = len(k) for idx in range(len(p)): res.append(k[idx % k_len]) return…

2025年9月16日 0人点赞 阅读全文
Python

Python学习笔记:凯撒密码加解密

  def reStart(textKey): theList = [] for i in textKey: if i.isalpha(): theList.append(i) else: print("存在非字母字符,请重新检查") exit() theCheckList = ''.join(theList) return theCheckList.lower() def theEncrypt(testValue,testKey): key = ord(testKey) - 97 value = [] …

2025年9月7日 7人点赞 阅读全文

oleander

静心思考、洞察世界

最新 热点 随机
最新 热点 随机
宝塔自动搭建JupyterHub后无法登录问题 Python学习笔记:维吉尼亚密码加解密 Python学习笔记:凯撒密码加解密
Python学习笔记:维吉尼亚密码加解密宝塔自动搭建JupyterHub后无法登录问题
Python学习笔记:维吉尼亚密码加解密 Python学习笔记:凯撒密码加解密 宝塔自动搭建JupyterHub后无法登录问题

COPYRIGHT © 2025 it老董博客. ALL RIGHTS RESERVED.

苏ICP备2025170541号

苏公网安备32020602003336号