02 2021 档案
摘要:# md5 加密def my_md5(s,salt=""): new_s = str(s) + salt m = hashlib.md5(new_s.encode()) return m.hexdigest()# 发送邮件 def send_mail(subject,content,files=No
阅读全文
摘要:import osimport jsonpathimport requestsdef save_jpg(qun): qun_url = "https://qun.qq.com/cgi-bin/qun_mgr/search_group_members" # 群管理URL qun_data = {"gc
阅读全文
摘要:import yamailpassword="amyli1499"host="smtp.163.com" #smtp.qq.com user="meiyanshandong@163.com"to = ["zhangmeiyan01@renmaitech.com"]cc = ["549541889@q
阅读全文
摘要:# key-valuer.set('food', 'mutton', ex=3,nx= True) # key是"food" value是"mutton" 将键值对存入redis缓存。 # 过期时间 :ex(秒)px(毫秒),过期后从redis中消失 # nx - 如果设置为True,则只有name
阅读全文
摘要:s.isdigit、isdecimal 和 s.isnumeric 区别 isdigit() True: Unicode数字,byte数字(单字节),全角数字(双字节) False: 汉字数字,罗马数字,小数 Error: 无 isdecimal() True: Unicode数字,,全角数字(双字
阅读全文
摘要:import flaskimport jsonimport MySQLimport 加密模块 as toolsimport send_messageserver = flask.Flask(__name__) @server.route('/api/user',methods=['post','ge
阅读全文