摘要: 作业: 1、把登录与注册的密码都换成密文形式 import hashlib def register(): user=input('请输入账号:') pwd=input('请输入密码:') pwd1=hashlib.md5(pwd.encode('utf-8')) pwd2=pwd1.hexdige 阅读全文
posted @ 2020-03-31 22:15 疏星淡月 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 一、json与pickle模块 1.1、什么是序列化和反序列化 内存中的数据类型 》序列化 》特定的格式(json格式或者pickle格式) 特定的格式(json格式或者pickle格式) 》反序列化 》内存中的数据类型 土办法: {'aaa':111} >序列化str({'aaa':111}) > 阅读全文
posted @ 2020-03-31 21:37 疏星淡月 阅读(175) 评论(0) 推荐(0) 编辑