摘要: 下载源码包 wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz 依赖安装 yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel 阅读全文
posted @ 2021-08-09 16:04 WenderWang 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 首次安装 Homebrew / Linuxbrew 首先,需要确保系统中安装了 bash、git 和 curl,对于 macOS 用户需额外要求安装 Command Line Tools (CLT) for Xcode。 对于 macOS 用户,系统自带 bash、git 和 curl,在命令行输入 阅读全文
posted @ 2021-08-09 15:06 WenderWang 阅读(435) 评论(0) 推荐(0) 编辑
摘要: Python3 有一个很好用的第三方库叫 line_profiler 可以分析每行代码的运行时间及占比 安装 pip install line_profiler 使用 # @Coding: utf-8 # @Time: 2021/8/5 3:54 下午 from line_profiler impo 阅读全文
posted @ 2021-08-05 15:59 WenderWang 阅读(480) 评论(0) 推荐(0) 编辑
摘要: Socket TCP原语 用Socket进行网络开发需了解服务器和客户端的Socket原语,每个原语在不同的高级语言中都有相应的实现方式. TCP的Socket原语,如图所示.所有基于TCP的Socket通信都遵循如图所示的流程,下面解释每个原语的含义. socket(): 建立Socket对象. 阅读全文
posted @ 2021-08-03 18:10 WenderWang 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: def resize_image(file_path, max_size): img = cv2.imread(file_path) file_up_path, file_ext = os.path.splitext(file_path) height, width, _ = img.shape n 阅读全文
posted @ 2021-08-03 10:36 WenderWang 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 拉取官方nginx镜像 新建一个nginx.conf文件,编辑以下内容 server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; locat 阅读全文
posted @ 2021-07-29 17:39 WenderWang 阅读(238) 评论(2) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-27 17:50 WenderWang 阅读(22) 评论(0) 推荐(0) 编辑
摘要: centos7 装机 制作U盘启动盘 开始装机 进入bios,选择U盘启动 选择系统安装位置 语言设置,时区设置。。。设置密码 等待安装 系统安装完成 设置网络 查看网卡 ifconfig 设置网络 设置dhcp $ vim /etc/sysconfig/network-scripts/ifcfg- 阅读全文
posted @ 2021-07-27 15:53 WenderWang 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 使用 from marshmallow import validate, fields name = fields.String(validate=validate.Length(max=256)) # name为字符串,最大长度为256 支持的属性 And(*validators, Any], e 阅读全文
posted @ 2021-07-19 16:05 WenderWang 阅读(333) 评论(0) 推荐(0) 编辑
摘要: # 原代码class TestModel(BaseModel): __tablename__ = "test" type = db.Column(db.String(255)) point_list = db.Column(db.String(256)) 修改列属性后 class TestModel 阅读全文
posted @ 2021-07-16 17:04 WenderWang 阅读(356) 评论(0) 推荐(0) 编辑