新增文件

This commit is contained in:
2026-04-16 09:05:01 +00:00
parent 9fd662df79
commit c7eef177a0
4 changed files with 295 additions and 0 deletions

64
tables.rst Normal file
View File

@@ -0,0 +1,64 @@
==================
表格数据示例
==================
以下是几种在 RST 中创建表格的方式。
简单表格
========
===== ===== =======
输入A 输入B 输出
===== ===== =======
0 0 0
0 1 1
1 0 1
1 1 0
===== ===== =======
网格表格
========
+------------+------------+-----------+
| 名称 | 类型 | 默认值 |
+============+============+===========+
| lr | float | 1e-3 |
+------------+------------+-----------+
| batch_size | int | 32 |
+------------+------------+-----------+
| epochs | int | 100 |
+------------+------------+-----------+
| optimizer | str | "adam" |
+------------+------------+-----------+
CSV 表格
========
.. csv-table:: 产品信息表
:header: "产品ID", "产品名称", "价格", "库存"
:widths: 10, 30, 10, 10
P001, 无线鼠标, 99.00, 120
P002, 机械键盘, 299.00, 45
P003, 降噪耳机, 899.00, 20
P004, 4K 显示器, 1999.00, 8
列表表格
========
.. list-table:: 项目成员表
:widths: 15 25 40
:header-rows: 1
* - 工号
- 姓名
- 职责
* - E001
- 张三
- 后端开发 / API 设计
* - E002
- 李四
- 前端开发 / UI 实现
* - E003
- 王五
- 测试 / DevOps