摘要: import yamail# 邮箱username# passwordusername = "xxx@qq.com"password = "xxx"host = "smtp.qq.com" #qq# host = "smtp.163.com" #163# host = "smtp.126.com" 阅读全文
posted @ 2021-06-16 23:47 黑。白。 阅读(53) 评论(0) 推荐(0)
摘要: import requestsurl = "https://oapi.dingtalk.com/robot/send"import timeimport hmacimport hashlibimport base64import urllib.parsedef get_dd_sign(): time 阅读全文
posted @ 2021-06-16 23:46 黑。白。 阅读(271) 评论(0) 推荐(0)
摘要: # l = [1,2,3]# d = {"name":"11"}# import traceback# try:# name = d["name"]# # l[4]# # except KeyError as e:# # print(e)# # print("出现异常了")# # except In 阅读全文
posted @ 2021-06-16 23:44 黑。白。 阅读(32) 评论(0) 推荐(0)
摘要: 1、网络请求 urllib 自带模块: 1、get 请求 2、post 请求 3、url 里面传参 4、body、josn 5、cookie 6、header 7、上传文件 8、k-v from urllib.request import urlopen from urllib.parse impo 阅读全文
posted @ 2021-06-16 23:41 黑。白。 阅读(980) 评论(0) 推荐(0)
摘要: # import xlrd# book = xlrd.open_workbook("test.xls")# # sheet = book.sheet_by_name("sheet1")# sheet = book.sheet_by_index(0)# # book.sheets() #获取所有she 阅读全文
posted @ 2021-06-16 23:40 黑。白。 阅读(63) 评论(0) 推荐(0)
摘要: redis 是一个数据库,他是非关系型数据库,nosql类型k-v 格式redis数据全部放在内存里面,每秒钟最大能支持10w的读写import redisr = redis.Redis(host="x.x.x.x",password="xxx",port=6379,db=4,decode_resp 阅读全文
posted @ 2021-06-16 23:39 黑。白。 阅读(182) 评论(0) 推荐(0)