摘要: print("\033[31m<num>. 模型类的属性和方法 \033[0m") 阅读全文
posted @ 2024-06-23 19:29 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: from pathlib import Pathfile_path = Path("aaa.json") # 实例化一个文件# 向文件写入内容file_path.write_text('{"id": "123", "name": "lqf", "sign_time": "2022-12-22T12: 阅读全文
posted @ 2024-06-23 19:06 tslam 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 一个数据格式定义和校验的包 官方文档: Field Types - Pydantic 基本使用test.py # pydantic_test.py from datetime import datetime, date from typing import List, Optional from p 阅读全文
posted @ 2024-06-23 18:47 tslam 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 导模块遇到该问题, 原因你起的py文件名与要导入的模块文件名相同 阅读全文
posted @ 2024-06-23 18:34 tslam 阅读(2) 评论(0) 推荐(0) 编辑
摘要: channels 一般与django的版本是同时发布或稍微延后发布, 在使用 channel时包的版本要跟django对应. 比如 django使用2.2 那么channels也使用2.2 阅读全文
posted @ 2024-06-23 18:00 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 图 fastapi 一般用Uvicorn 阅读全文
posted @ 2024-06-23 17:30 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: consider setting up the Docker daemon in rootless mode for your user: dockerd-rootless-setuptool.sh install Visit -> https://docs.docker.com/go/rootle 阅读全文
posted @ 2024-06-23 12:01 tslam 阅读(3) 评论(0) 推荐(0) 编辑
摘要: refer to https://docs.docker.com/go/daemon-access/ 阅读全文
posted @ 2024-06-23 11:59 tslam 阅读(2) 评论(0) 推荐(0) 编辑