随笔分类 -  软件开发 / python

摘要:linux 创建 Python 虚拟环境 sudo apt update sudo apt install python3-venv python3 -m venv myenv source myenv/bin/activate 阅读全文
posted @ 2024-10-15 15:18 wenbogu 阅读(7) 评论(0) 推荐(0) 编辑
摘要:序号 名称 链接 1 Python黑魔法手册 跳转 阅读全文
posted @ 2024-01-29 18:32 wenbogu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:1、使用wtform报错TypeError: object of type 'int' has no len() 这个错误通常是因为在表单定义中使用了整数类型的字段,而wtform期望的是字符串类型的字段。 例如,如果你定义了一个整数类型的字段: python from wtforms import 阅读全文
posted @ 2023-06-11 20:45 wenbogu 阅读(244) 评论(0) 推荐(0) 编辑
摘要:Awesome Python 环境管理 管理 Python 版本和环境的工具 p:非常简单的交互式 Python 版本管理工具。 pyenv:简单的 Python 版本管理工具。 Vex:可以在虚拟环境中执行命令。 virtualenv:创建独立 Python 环境的工具。 virtualenvwr 阅读全文
posted @ 2023-01-09 17:36 wenbogu 阅读(271) 评论(0) 推荐(0) 编辑
摘要:1. Python-100-Days 项目地址:https://github.com/jackfrued/Python-100-DaysPython-100-Days 就是我上面说的“保姆级”教程,他的内容面面俱到包括了 Python 开发的方方面面,手把手地一步步的讲 Python 技术。 面向没 阅读全文
posted @ 2023-01-09 17:28 wenbogu 阅读(139) 评论(0) 推荐(0) 编辑
摘要:1、需要的环境 Python Requests 库 2、单字段发送单个文件 在requests中发送文件的接口只有一种,那就是使用requests.post的files参数, 请求形式如下: url = "http://httpbin.org/post" data = None files = { 阅读全文
posted @ 2022-04-15 18:05 wenbogu 阅读(918) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
🚀