Toggle navigation
VXiaoZhi Blog
Home
About
Archive
VXiaoZhi Blog
「离开世界之前 一切都是过程」
游戏强化训练
游戏强化训练
游戏强化训练 LeelaChessZero/Lc0
Posted by vxiaozhi on January 12, 2025
Reids 数据类型
Reids 数据类型
Reids 数据类型 Redis 主要支持以下几种数据类型: string(字符串): 基本的数据存储单元,可以存储字符串、整数或者浮点数。 hash(哈希):一个键值对集合,可以存储多个字段。 list(列表):一个简单的列表,可以存储一系列的字符串元素。 set(集合):一个无序集合,可以存储不重复的字符串元素。 zset(sorted set:有序集合): 类...
Posted by vxiaozhi on January 12, 2025
Python Web 框架
Python Web 框架
Python Web 框架 django FastAPI 路由 路径参数 定义一般路由 对路由分组 OpenAPI 文档相关 请求体 - 字段 元数据和文档 URL BaseModel 字段约束的Field定义 中间件 如何使用中间件修改请求及应答包体 日志 参考:为 FastAPI 配置日志的三种方法 第一种,就像写脚本那样记录日志...
Posted by vxiaozhi on January 12, 2025
Python 可视化调试
Python 可视化调试
Python 可视化调试 方法1: VsCode 方法2: PyCharm 方法3: VizTracer VizTracer A debugging and profiling tool that can trace and visualize python code execution
Posted by vxiaozhi on January 12, 2025
Python embeddable 版本安装过程记录
Python embeddable 版本安装过程记录
Python embeddable 版本安装过程记录 操作系统: Win11 Python版本: Python 3.10 Step 1: 安装Python3.10 从下载列表 Python3.10 可以看出,Installer版本的安装文件大小比Embeddable版本大很多。 1 2 Windows installer (32-bit) 25.9M Windows em...
Posted by vxiaozhi on January 12, 2025
Python 的 dataclass
Python 的 dataclass
Python 的 dataclass dataclass是从Python3.7版本开始,作为标准库中的模块被引入。Python 3.6 版本可通过手动安装 python3.6 -m pip install dataclasses . 随着Python版本的不断更新,dataclass也逐步发展和完善,为Python开发者提供了更加便捷的数据类创建和管理方式。 dataclass的主要功...
Posted by vxiaozhi on January 12, 2025
Python 与 bash 脚本共享配置文件的最佳实践
Python 与 bash 脚本共享配置文件的最佳实践
Python 与 bash 脚本共享配置文件的最佳实践 同一个工程的代码中可能会同时包含 python 代码和 bash 脚本, 不可避免的会用到配置文件。一些场景下,这两种语言需要共享相同的配置。 怎么实现呢? 有两种方案: 使用不同格式的配置文件,如 Bash 使用 .env 作为配置,Python 则用 json 格式作为配置。 使用相同格式的配置文件,如都使用 .env...
Posted by vxiaozhi on January 12, 2025
Conda的替代品
Conda的替代品
Conda的替代品 由于 Anaconda MiniConda 开始收费了,我们可以用 MiniForge 或 Mamba 来代替 Conda。 Miniforge Mamba
Posted by vxiaozhi on January 12, 2025
php-with-golang
php-with-golang
php-with-golang 参考 RoadRunner High-performance PHP application server, process manager written in Go and powered with plugins
Posted by vxiaozhi on January 12, 2025
Nginx+PHP-FPM 部署
Nginx+PHP-FPM 部署
Nginx+PHP-FPM 部署 PHP-FPM 自 PHP 5.3.3 版本之后已经集成在 php 核心代码中了。 代码路径:https://github.com/php/php-src/blob/master/sapi/fpm/fpm/fpm_main.c Nginx 配置 1 2 3 4 5 6 7 8 9 10 11 12 13 14 server { listen...
Posted by vxiaozhi on January 12, 2025
← Newer Posts
Older Posts →
FEATURED TAGS
编程语言
k8s
server
cet4
english
golang
web
python
cpp
gitbook
deepseek
http
建站
boinc
cmd
code
docker
cms
gateway
aigc
coroutine
cs
image
llm
mac
php
rust
seo
webframework
工具
LLM
WordPress
dns
github
gre
higress
js
json
ABOUT ME
要做一个有 swag 的程序员
React Team @ Meta
知
FRIENDS
huxpro.github.io
ruanyf/weekly
-->