2017年11月23日
摘要: 1 #实现用户注册登陆 且密码为密文保存 2 #login_password_hash = hashlib.md5(bytes('自己的加密字节',encoding='utf-8')) 不会被撞库 3 4 5 6 import hashlib 7 while 1: 8 mesg = input('1登录2注册\n') 9 if mesg == '2': 1... 阅读全文
posted @ 2017-11-23 21:16 悯尘 阅读(149) 评论(0) 推荐(0) 编辑
摘要: import pickle dic = { 1001:{ 'name': 'Alex', 'sex': 'male', 'balance': 1000, 'bank_acc':{ 'ICBC': 10001, 'ABC': 10002 } }, ... 阅读全文
posted @ 2017-11-23 13:31 悯尘 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #_*_coding:utf-8_*_ __author__ = 'Alex Li' import time # print(time.clock()) #返回处理器时间,3.3开始已废弃 , 改成了time.process_time()测量处理器运算时间,不包括sleep时间,不稳定,mac上测不出来 # print(time.altzone) #返回与utc时间的时间差,以秒计算\ ... 阅读全文
posted @ 2017-11-23 08:58 悯尘 阅读(120) 评论(0) 推荐(0) 编辑