摘要: code import hashlib m=hashlib.md5("timestamp=1609255104851&data={'company_id': '5fd09cf027f65f542573d0b5', 'org_unit_name': '审计部1609255104851', 'third 阅读全文
posted @ 2020-12-30 20:05 anobscureretreat 阅读(125) 评论(0) 推荐(0) 编辑
摘要: code import time import datetime t=datetime.datetime.now() #当前日期 d1 =t.strftime('%Y-%m-%d %H:%M:%S') print(d1) #7天后 d2=(t+datetime.timedelta(days=7)). 阅读全文
posted @ 2020-12-30 19:10 anobscureretreat 阅读(838) 评论(0) 推荐(0) 编辑
摘要: code import random def RandomPhone(): prelist = ["130", "131", "132", "133", "134", "135", "136", "137", "138", "139", "147", "150", "151", "152", "15 阅读全文
posted @ 2020-12-30 18:02 anobscureretreat 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 一、Dictionary 转为JSON 将dict转为JSON,这里利用包json import jsonaItem = {}aItem["id"] = "2203"aItem["title"] = "title"aItem["subTitle"] = "sub title"bItem = {}bI 阅读全文
posted @ 2020-12-30 11:44 anobscureretreat 阅读(4591) 评论(0) 推荐(0) 编辑
摘要: requests库提示警告: (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in 阅读全文
posted @ 2020-12-30 11:29 anobscureretreat 阅读(2579) 评论(0) 推荐(0) 编辑