摘要: #一、今日作业# 1.把登录与注册的密码都换成密文形式 方式一: import time import hashlib # 登录功能 all_user_dict = {} #获取文件数据 def get_all_users(): with open('db.txt', 'r', encoding=' 阅读全文
posted @ 2020-03-31 21:15 sunshine如你 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 一、json&pickle模块 1 什么是序列化 我们把对象(变量)从内存中变成可存储或传输的过程称之为序列化,在Python中叫pickling,在其他语言中也被称之为serialization,marshalling,flattening等等,都是一个意思。 2 为什么要序列化 2.1 持久保存 阅读全文
posted @ 2020-03-31 21:08 sunshine如你 阅读(260) 评论(0) 推荐(0) 编辑