上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 36 下一页
摘要: 加密 1. 数字签名 import hashlib import time md5_obj = hashlib.md5() sign_str = 'abc123' # 获取时间戳 . 前面部分 now_time = time.time() c_time = str(now_time).split(' 阅读全文
posted @ 2024-01-25 16:03 爱新觉罗LQ 阅读(28) 评论(0) 推荐(0)
摘要: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:777) 更换节点 阅读全文
posted @ 2024-01-25 00:11 爱新觉罗LQ 阅读(139) 评论(0) 推荐(0)
摘要: flask实现接口 from flask import Flask, request # 创建一个 flask 实例,__name__ 是告诉 flask 应用的名字 app = Flask(__name__) app.debug = True # url @app.route("/index.ht 阅读全文
posted @ 2024-01-25 00:11 爱新觉罗LQ 阅读(33) 评论(0) 推荐(0)
摘要: json 数据格式 import json # 先定义一个字典 d1 = {'name': '张无忌', 'age': 34} print(type(d1)) # 查看数据类型 # 将 Python 中字典转为字符串【序列化】 j1 = json.dumps(d1) print(j1) # json 阅读全文
posted @ 2024-01-24 23:18 爱新觉罗LQ 阅读(17) 评论(0) 推荐(0)
摘要: *args 与 **kwargs 的区别 定义 *args 与 **kwargs 的区别,两者都是 python 中的可变参数: *args 表示任何多个无名参数,它本质是一个 tuple **kwargs 表示关键字参数,它本质上是一个 dict 应用 1. 同时使用 *args 和 **kwar 阅读全文
posted @ 2024-01-24 17:03 爱新觉罗LQ 阅读(37) 评论(0) 推荐(0)
摘要: Request库发出 get 和 post 请求 import requests # 发出一个 get 请求,使用变量接收响应 r = requests.get("http://www.baidu.com") print(r) # <Response [200]> print(r.text) # 响 阅读全文
posted @ 2024-01-24 16:56 爱新觉罗LQ 阅读(42) 评论(0) 推荐(0)
摘要: selenium 使用 1. 安装 selenium 虽然是工具,但是实际是 python 中一个库 pip install selenium==3.14 2. 浏览器驱动下载 https://googlechromelabs.github.io/chrome-for-testing/ 下载后放入到 阅读全文
posted @ 2024-01-22 00:41 爱新觉罗LQ 阅读(61) 评论(0) 推荐(0)
摘要: Faker:制作虚假数据 from faker import Faker fake = Faker() print(fake.name()) print(fake.address()) print(fake.text()) print(fake.email()) 阅读全文
posted @ 2024-01-20 19:10 爱新觉罗LQ 阅读(18) 评论(0) 推荐(0)
摘要: 个人信息配置 1. 配置邮箱 git config --global user.email "you@example.com" git config --global user.name "Your Name" 2. 查看 Config 配置信息 config 配置有system级别 global( 阅读全文
posted @ 2024-01-18 17:37 爱新觉罗LQ 阅读(11) 评论(0) 推荐(0)
摘要: ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. 1. 改为 https 方式 私有仓库报错:remote 地址设置错误 私有仓库 r 阅读全文
posted @ 2024-01-18 16:02 爱新觉罗LQ 阅读(435) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 36 下一页