会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
山城小跳
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
下一页
2023年4月21日
如何获取项目中所使用的包版本
摘要: pip freeze > requirements.txt 创建虚拟环境,运行 pip install -r requirements.txt
阅读全文
posted @ 2023-04-21 17:43 字母一哥
阅读(24)
评论(0)
推荐(0)
2023年3月18日
python之DES3加密
摘要: 安装第三方模块 pip install pycryptodome 代码实现 import base64 from Crypto.Cipher import DES3 def des3(data_string): BS = 8 pad = lambda s: s + (BS - len(s) % BS
阅读全文
posted @ 2023-03-18 11:18 字母一哥
阅读(403)
评论(0)
推荐(0)
2023年1月13日
webpack使用
摘要:  
阅读全文
posted @ 2023-01-13 17:33 字母一哥
阅读(18)
评论(0)
推荐(0)
2023年1月9日
前端知识点
摘要: 1.字体不加粗 font-weight:normal; 2.设置垂直居中 line-height:50px; # 行高和盒子的宽度设置为一样 3.首行缩进 text-indent:20px; 4.如何让盒子水平居中 margin:10px auto 20px; # 设置盒子的左右边距为auto自动计
阅读全文
posted @ 2023-01-09 11:52 字母一哥
阅读(33)
评论(0)
推荐(0)
2023年1月7日
python的虚拟环境
摘要: 实操: 1.安装虚拟环境的工具 virtualenv pipx.x install virtualenv 2.命令行创建 virtualenv F:\envs\v1 --python=python3.9 3.如何使用虚拟环境 1 绝对路径的方式 F:\envs\v1\Scripts\pip inst
阅读全文
posted @ 2023-01-07 11:06 字母一哥
阅读(30)
评论(0)
推荐(0)
2022年10月17日
关于字体反爬的操作
摘要: 需要安装的包 pip install pillow 如何将字体的内容画出来 from PIL import Image from PIL import ImageFont from PIL import ImageDraw def get_draw_image(wolf, font_list, fi
阅读全文
posted @ 2022-10-17 19:08 字母一哥
阅读(71)
评论(0)
推荐(0)
2022年10月14日
如何解析url
摘要: bs_url = "aHR0cHM6Ly9hY2NvdW50LnhpYW9taS5jb20v" url = base64.b64decode(bs_url).decode() print(url) # 通过对参数的分析发现 ,_sign user hash 参数为加密参数 header = { "U
阅读全文
posted @ 2022-10-14 16:19 字母一哥
阅读(226)
评论(0)
推荐(0)
2022年9月25日
python之装饰器
摘要: 装饰器: > 要求记住最后的结论 装饰器本质上是一个闭包 作用: 1在不改变原有函数调用的情况下. 给函数增加新的功能. 2直白: 可以在函数前后添加新功能, 但是不改原来的代码 应用场景: 在用户登录的地方, 日志. 通用装饰器的写法: def wrapper(fn): wrapper: 装饰器,
阅读全文
posted @ 2022-09-25 21:39 字母一哥
阅读(36)
评论(0)
推荐(0)
python之闭包
摘要: 闭包: 本质, 内层函数对外层函数的局部变量的使用. 此时内层函数被称为闭包函数 1. 可以让一个变量常驻与内存 2. 可以避免全局变量被修改 案例: def func(): a = 10 def inner(): nonlocal a a += 1 return a return inner re
阅读全文
posted @ 2022-09-25 21:27 字母一哥
阅读(11)
评论(0)
推荐(0)
2022年8月30日
python 如何抓取m3u8片段的电影
摘要: 第一步:查看url路径是否在页面源代码中,r from urllib.parse import urljoin import requests import os from concurrent.futures import ThreadPoolExecutor, wait import re he
阅读全文
posted @ 2022-08-30 19:14 字母一哥
阅读(1428)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页