摘要: pydantic https://docs.pydantic.dev/latest/concepts/serialization/#modelmodel_dump https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.Compute 阅读全文
posted @ 2024-04-23 17:51 Tank-Li 阅读(16) 评论(0) 推荐(0)
摘要: <template> <div class="container"> <!-- 表格部分 --> <el-table :data="tableData" border style="width: 100%"> <el-table-column prop="name" label="姓名" width 阅读全文
posted @ 2025-01-18 19:30 Tank-Li 阅读(7) 评论(0) 推荐(0)
摘要: drf url 去掉末尾的 "/" trailing_slash=False from . import views from rest_framework.routers import SimpleRouter user_url = SimpleRouter(trailing_slash=Fals 阅读全文
posted @ 2024-06-26 23:39 Tank-Li 阅读(16) 评论(0) 推荐(0)
摘要: SQLAlchemy 是一个 Python 的 ORM(对象关系映射)库,它提供了一种将关系型数据库中的表映射为 Python 对象的方式。在 SQLAlchemy 中,joinedload 和 subqueryload 是两种常用的加载策略,用于优化关联数据的加载方式。 joinedload jo 阅读全文
posted @ 2024-05-14 14:44 Tank-Li 阅读(182) 评论(0) 推荐(0)
摘要: 网络 前置操作 nmcli con mod "Wired connection 1" ipv4.addresses 192.168.0.201/24 # 设置IP地址 nmcli con mod "Wired connection 1" ipv4.gateway 192.168.0.1 # 设置网关 阅读全文
posted @ 2024-04-13 16:11 Tank-Li 阅读(28) 评论(0) 推荐(0)