上一页 1 2 3 4 5 6 7 ··· 60 下一页

2025年6月15日

flex 布局方法

摘要: 一、Flex 布局是什么? Flex 是 Flexible Box 的缩写,意为"弹性布局",用来为盒状模型提供最大的灵活性。 任何一个容器都可以指定为 Flex 布局。 .box{ display: flex; } 1.flex-direction:决定主轴的方向 row(默认值):主轴为水平方向 阅读全文

posted @ 2025-06-15 17:39 星河赵 阅读(50) 评论(0) 推荐(0)

2025年6月14日

python 图片缩放到指定像素

摘要: python 图片缩放到指定像素 from PIL import Image import io import base64 MAX_SIZE = 2450 def resize_image_max_side(image_data: bytes, max_side: int = MAX_SIZE) 阅读全文

posted @ 2025-06-14 11:07 星河赵 阅读(55) 评论(0) 推荐(0)

2025年6月12日

png转alpha图片

摘要: png转alpha import cv2 import os save_path = "/tmp/17527.png" img_png = cv2.imread(save_path, cv2.IMREAD_UNCHANGED) alpha = img_png[:, :, 3] os.remove(s 阅读全文

posted @ 2025-06-12 17:08 星河赵 阅读(25) 评论(0) 推荐(0)

2025年6月3日

通过auth0实现google登录和apple登录以及emal登录

摘要: 客户端传 code 给后端换 token(清晰流程) [前端跳转到 Auth0 登录页面(response_type=code)] | v [用户登录后,Auth0 回调前端页面 /fe-login-callback?code=xxx] | v [前端拿到 code 后,请求你后端 API:/api 阅读全文

posted @ 2025-06-03 16:41 星河赵 阅读(289) 评论(1) 推荐(0)

2025年5月20日

python 将html 转为pdf

摘要: 如果你是在 Linux (如 Ubuntu) 环境中运行,可以通过如下命令安装: sudo apt-get update sudo apt-get install -y wkhtmltopdf 🛠 安装(推荐 Python 3.7+) pip install pdfkit 🔧 如果安装失败,可能 阅读全文

posted @ 2025-05-20 15:08 星河赵 阅读(142) 评论(0) 推荐(0)

2025年5月19日

python 通过asyncio 协程来下载图片

摘要: python 通过asyncio 协程的方式来下载图片 """ 以协程的方式下载图片 """ import os import sys import asyncio import aiohttp import traceback sys.path.append(os.path.abspath(os. 阅读全文

posted @ 2025-05-19 15:31 星河赵 阅读(42) 评论(0) 推荐(0)

2025年5月9日

Vue vscode 常用插件安装

摘要: Vue vscode 常用插件安装 必装插件(推荐组合) 插件名称用途 Volar(替代 Vetur) Vue 3 官方推荐语法支持插件(必须装) TypeScript Vue Plugin (Volar) 支持 Composition API 和类型提示 Vue Language Features 阅读全文

posted @ 2025-05-09 15:12 星河赵 阅读(225) 评论(0) 推荐(0)

2025年4月30日

提取png图片为alpha图

摘要: 通过opencv 提取png图片为alpha图 import cv2 img_png = cv2.imread(save_path, cv2.IMREAD_UNCHANGED) alpha = img_png[:, :, 3] os.remove(save_path) # 删除提取alpha 前的图 阅读全文

posted @ 2025-04-30 18:03 星河赵 阅读(41) 评论(0) 推荐(0)

2025年4月24日

python 爬虫淘宝天猫

摘要: python 爬虫获取淘宝天猫的图片和标题 以 Playwright + Python 为例: 扫码登录获取 cookies 的方式(推荐用 headless browser 实现) 由于linux服务器没有页面,使用 headless=False + Xvfb(虚拟显示)模拟图形界面(推荐在服务器 阅读全文

posted @ 2025-04-24 16:25 星河赵 阅读(208) 评论(0) 推荐(0)

2025年3月24日

Python 使用 EasyOCR检测图片是否有文字

摘要: 检测图片是否有文字: EasyOCR 对 中文、手写字体、复杂背景 处理更好。 github 地址:https://github.com/JaidedAI/EasyOCR 安装: pip install easyocr model 相关安装包 1,模型的官方地址: https://www.jaide 阅读全文

posted @ 2025-03-24 11:34 星河赵 阅读(222) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 60 下一页

导航