04 2021 档案
摘要:import hashlib def sha256jiami(jiami): s = hashlib.sha256() s.update(jiami.encode("utf-8")) #需要对加密内容指定字符编码 b = s.hexdigest() return b def md5jiami(jia
阅读全文
摘要:import requests class OpenAdmin_Auth_Ticket(object): def get_cookie(self,url): res = requests.get(url).cookies return {"Cookie":"SESSION=%s" %res["SES
阅读全文
摘要:案例一: # coding=utf-8 ''' 第4课作业:python实现登陆接口 找个登陆接口 或者找个网站(无验证码的)实现登陆 找不到就用课程的 http://49.235.99.13:8800/users/login/ test@qq.com a123456 ''' import requ
阅读全文
摘要:案例一: # coding=utf-8 ''' 历史上的今天AppKey:key 接口文档地址 https://www.juhe.cn/docs/api/id/63 接口地址:http://v.juhe.cn/todayOnhistory/queryEvent.php 返回格式:json 请求方式:
阅读全文
摘要:先列出所有的yml文件的路径以及.yml的文件 import yaml import os import re file_path_list = [] def print_all_file_path(init_file_path, keyword): for cur_dir, sub_dir, in
阅读全文
摘要:python3下载:pip install crypto pycryptodome import base64 from Crypto.Cipher import AES class EncryptDate: def __init__(self, key): self.key = key # 初始化
阅读全文