首页
Dart
Flutter
Python
FastApi
PHP
Laravel
Thinkphp
JavaScript
Vue
TypeScript
autojs
Android
java
C/C++
Kotlin
SQL
Mysql
Linux
Kali Linux
Docker
Shell
其他
本站功能使用教程
常用网站收录
提问的智慧
Google翻译镜像站
本站同款主题
写文章
登录
首页
Dart
Flutter
Python
FastApi
PHP
Laravel
Thinkphp
JavaScript
Vue
TypeScript
autojs
Android
java
C/C++
Kotlin
SQL
Mysql
Linux
Kali Linux
Docker
Shell
其他
本站功能使用教程
常用网站收录
提问的智慧
Google翻译镜像站
本站同款主题
登录
找回密码
python
共17篇
排序
更新
浏览
点赞
评论
html转换为markdown [html2text库]
Piphttps://pypi.org/project/html2text/安装:pip install html2text使用:import html2text md_text = open('ret.html', 'r', encoding='utf-8').read() markdown = html2text.html2text(md_t...
Python
趙哥
3年前
0
231
0
python 使用Pillow给图片加边框
方法一:使用 ImageOps.expand() 加单色边框(推荐) from PIL import Image, ImageOps img = Image.open('example.jpg') border_img = ImageOps.expand(img, border=10, fill='black') # 加 10...
Python
趙哥
10个月前
0
228
0
markdown 转 html [markdown库]
Piphttps://pypi.org/project/Markdown/安装:pip install markdown使用:from markdown import markdown print(dir(markdown)) file = open('help.md','r',encoding='utf-8').read() html = ma...
Python
趙哥
3年前
0
214
0
PIL(Python Imaging Library)库 常用的图像处理方法
PIL(Python Imaging Library)库提供了许多常用的图像处理方法,以下是一些常用的图像操作方法: 打开图像: from PIL import Image img = Image.open('image.jpg') 保存图像: img.save('output...
Python
趙哥
10个月前
0
96
0
Python 第三方库管理
获取第三方依赖: 第一种 适用于 单虚拟环境的情况: : pip freeze > requirements.txt 为什么只适用于单虚拟环境?因为这种方式,会将环境中的依赖包全都加入,如果使用的全局环境...
Python
趙哥
3年前
0
265
0
Conda 安装32位版本python
conda在安装python时,会根据conda配置中的platform的参数的具体配置安装64bit或32bit版本的python。 查询结果如下图所示: conda info 切换方法: 若使用的终端为cmd,切换命令如下: # 切换64...
Python
趙哥
9个月前
0
276
0
Python虚拟环境管理工具介绍:virtualenv,Virtualenvwrapper,conda,pipenv
Python虚拟环境管理工具介绍: Python虚拟环境管理工具可以帮助你在同一台计算机上创建和管理多个独立的Python环境。这些工具可以隔离不同项目之间的依赖关系,提供一个干净和隔离的开发环境。下...
Python
趙哥
3年前
0
247
0
Http状态码详解
状态码状态名称简介用途100Continue指示客户端可以继续发送请求的剩余部分用于在请求头中包含Expect: 100-continue时,服务器通知客户端可以继续发送请求主体的一种方式101SwitchingProtocols服...
PHP
趙哥
2年前
0
190
0
常用汇编指令、常用寄存器、常见Hook类型、内存存储方式
汇编: 汇编指令是一种低级编程语言,用于与计算机硬件进行直接交互。在汇编语言中,每个指令通常对应着一条机器指令,它们以助记符的形式表示,并且直接映射到底层的机器指令。下面是一些常用...
其他
趙哥
2年前
0
219
0
python 打开图片
import cv2 from PIL import Image def print_image_to_console(image_path: str): '''调用系统打开图片 Args: image_path (str): _description_ ''' image = Image.open(image_path) image.sho...
Python
趙哥
2年前
0
197
0
加载更多
在手机上浏览此页面
登录
手机号或邮箱
验证码
发送验证码
记住登录
账号密码登录
登录
用户名/手机号/邮箱
登录密码
记住登录
找回密码
|
免密登录
登录