![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python3
coder-louie
这个作者很懒,什么都没留下…
展开
-
Python加密解密神器--cryptography
我们的日常工作中,一定会遇到需要加密的数据,比如:密码、私密信息… …我们不仅要对他们进行加密,更需要对他们进行解密,谁能看得懂一坨乱码…那么加密算法千千万,要想学习成本低咋办cryptography应运而出:目标是成为“人类易于使用的密码学包cryptography for humans”,就像 requests 是“人类易于使用的 HTTP 库HTTP for Humans”一样。这个想法使你能够创建简单安全、易于使用的加密方案。安装包:pip install cryptograp..原创 2021-06-17 17:37:57 · 963 阅读 · 0 评论 -
Django admin结合pyecharts 构建简易数据可视化
Django admin结合pyecharts 构建简易数据可视化如需转载请注明来源admin项目构建教程较多就不赘述了,咱们直接捞干的安装包:pip install pyechartsmysite/urls:from django.contrib import adminfrom django.urls import include, pathfrom django.conf import settingsfrom django.conf.urls.static import static原创 2021-06-17 17:13:16 · 1174 阅读 · 3 评论 -
Python3出现TypeError: string argument without an encoding
TypeError: string argument without an encodingpython3需要先将string encode后才可以可以参考下我的代码:def save_model(self, request, obj, form, change): key_old = Fernet.generate_key() key = Fernet(key_old) key_text = bytes(obj.key_code.encode('utf-8'))原创 2021-06-17 14:05:56 · 2430 阅读 · 0 评论