apppublic/aidocs/version.md
2025-10-05 11:23:33 +08:00

34 lines
941 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 技术文档
## 模块版本信息
### 概述
本文件定义了当前软件模块的版本号。版本号遵循语义化版本控制规范Semantic Versioning
### 版本变量
```python
__version__ = '5.5.0'
```
### 字段说明
- **`__version__`**: 模块级变量,用于存储当前版本的字符串表示
- **值**: `'5.5.0'` - 遵循 `主版本号.次版本号.修订号` 的格式
### 版本号含义
根据语义化版本控制规范:
- **主版本号 (5)**: 表示重大更新可能包含不兼容的API变更
- **次版本号 (5)**: 表示向后兼容的功能新增
- **修订号 (0)**: 表示向后兼容的问题修复
### 使用场景
此版本变量可用于:
- 程序运行时检查当前版本
- 包管理系统的版本标识
- API文档中的版本标注
- 调试和错误报告时的环境信息
### 示例用法
```python
import your_module
print(f"当前版本: {your_module.__version__}")
```