首页
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
第2页
一种简洁易读、功能强大的解释型编程语言,适用于数据分析、人工智能、网络爬虫、Web 开发、自动化运维等领域。
排序
更新
浏览
点赞
评论
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
# Pillow
趙哥
32天前
0
15
0
Pycharm开发python必装插件
Pydantic: https://plugins.jetbrains.com/plugin/12861-pydantic 在 PyCharm 中,Pydantic 插件可以根据 Pydantic 模型自动推断数据类型,并提供自动补全和类型检查功能,帮助开发者编写更加健...
# python
# pycharm
趙哥
2年前
0
154
0
PIL(Python Imaging Library)库 常用的图像处理方法
PIL(Python Imaging Library)库提供了许多常用的图像处理方法,以下是一些常用的图像操作方法: 打开图像: from PIL import Image img = Image.open('image.jpg') 保存图像: img.save('output...
# python
# Pillow
趙哥
32天前
0
13
0
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
# html2text
趙哥
2年前
0
148
0
Conda 安装32位版本python
conda在安装python时,会根据conda配置中的platform的参数的具体配置安装64bit或32bit版本的python。 查询结果如下图所示: conda info 切换方法: 若使用的终端为cmd,切换命令如下: # 切换64...
# python
# conda
# win32
趙哥
17天前
0
15
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
# Markdown
趙哥
2年前
0
162
0
Python 第三方库管理
获取第三方依赖: 第一种 适用于 单虚拟环境的情况: : pip freeze > requirements.txt 为什么只适用于单虚拟环境?因为这种方式,会将环境中的依赖包全都加入,如果使用的全局环境...
# python
# 依赖
趙哥
2年前
0
219
0
在手机上浏览此页面
登录
手机号或邮箱
验证码
发送验证码
记住登录
账号密码登录
登录
用户名/手机号/邮箱
登录密码
记住登录
找回密码
|
免密登录
登录