摘要: > 覆盖 root@xxxxxxxxx:/home# echo "world1" > 11.txt >> 追加 root@xxxxxxxxx:/home# echo "world" >> 11.txt 阅读全文
posted @ 2024-07-03 20:12 tslam 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 参考 Linux里设置环境变量的方法(export PATH) - Life·Intelligence - 博客园 (cnblogs.com) 阅读全文
posted @ 2024-07-02 21:33 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 参考链接: [linux] 下 ls 文件夹和文件没有颜色的解决办法 - wangju003 - 博客园 (cnblogs.com) 阅读全文
posted @ 2024-07-02 20:25 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: anytree -> 提供相关API, 如创建、添加、删除、遍历、搜索 阅读全文
posted @ 2024-07-01 14:20 tslam 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 参考1 from enum import Enum from fastapi import APIRouter, Path app03 = APIRouter() @app03.get('/path/param') def path_params01(): return {'data': 'this 阅读全文
posted @ 2024-06-26 20:26 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 限制类的实例只能拥有slots中的属性 阅读全文
posted @ 2024-06-25 21:12 tslam 阅读(2) 评论(0) 推荐(0) 编辑
摘要: cab文件时win压缩格式,无法直接安装. 参考1: Win10/Win7/Win8.1怎么使用注册表给CAB更新包添加右键安装项?_百度知道 (baidu.com) 参考2: Win10更新是CAB格式的要怎么安装?安装CAB格式更新补丁教程 -Win7系统之家 (winwin7.com) 图参考 阅读全文
posted @ 2024-06-24 13:53 tslam 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑