摘要: get import requests # get url = 'http://api.nnzhp.cn/api/user/stu_info' d = {'stu_name':'矿泉水'} r = requests.get(url,d)#发get请求 print('r.json',r.json()) 阅读全文
posted @ 2019-11-15 20:49 灰兔的魔王 阅读(78) 评论(0) 推荐(0) 编辑
摘要: import hashlib #md5 password = 'python2里面' m = hashlib.md5(password.encode())#加密前先转换成二进制,加密不可逆,不能进行解密 print(m.hexdigest()) 加盐 def my_md5(content,salt= 阅读全文
posted @ 2019-11-15 17:17 灰兔的魔王 阅读(115) 评论(0) 推荐(0) 编辑
摘要: import yagmail username = '账号' password = '授权码' smtp = 'smtp.163.com' mail = yagmail.SMTP(user=username,password=password,host=smtp) to = 'xxxxxx@126. 阅读全文
posted @ 2019-11-15 15:59 灰兔的魔王 阅读(107) 评论(0) 推荐(0) 编辑