摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- from fastapi import FastAPI from fastapi.openapi.docs import (get_redoc_html, get_swagger_ui_html, get_s 阅读全文
posted @ 2026-05-20 07:15 是17阿哥呀 阅读(5) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- from fastapi import FastAPI from starlette.responses import JSONResponse async def exception_not_found(r 阅读全文
posted @ 2026-05-19 07:22 是17阿哥呀 阅读(9) 评论(0) 推荐(0)
摘要: 新增配置文件config.ini [fastapi_config] host = 127.0.0.1 debug = True title = "FastAPI" description = "FastAPI文档明细描述" version = v1.0.0 [redis] ip = 127.0.0. 阅读全文
posted @ 2026-05-17 07:58 是17阿哥呀 阅读(8) 评论(0) 推荐(0)
摘要: # get_option 获取解释器的默认参数值。 import pandas as pd print (pd.get_option("display.max_rows")) # 获取显示上限的行数 print (pd.get_option("display.max_columns")) # 获取显 阅读全文
posted @ 2026-04-15 19:42 是17阿哥呀 阅读(6) 评论(0) 推荐(0)
摘要: import sys # 引入 sys 模块 list=[1,2,3,4] it = iter(list) # 创建迭代器对象 while True: try: print (next(it)) except StopIteration: sys.exit() 1 2 3 4 An exceptio 阅读全文
posted @ 2026-04-15 19:38 是17阿哥呀 阅读(10) 评论(0) 推荐(0)
摘要: 随处搜索 (类/文件/符号/操作) 双击 Shift 打开/关闭项目工具窗 Alt + 1 切换标签页 (编辑窗口切换) Ctrl + Tab 最近文件列表 Ctrl + E 复制当前行 (到下一行) Ctrl + D 删除当前行 Ctrl + Y 移动行 (上下移动) Alt + Shift + 阅读全文
posted @ 2026-03-31 17:13 是17阿哥呀 阅读(25) 评论(0) 推荐(0)
摘要: 1. 先在 MySQL 中创建数据库 mysql -h your-mysql-host -u root -p -e "CREATE DATABASE nacos_config CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" 2. 导入 Nacos 阅读全文
posted @ 2026-03-11 10:36 是17阿哥呀 阅读(25) 评论(0) 推荐(0)
摘要: 一些命令 # 拉取MySQL 8.0镜像 docker pull mysql:8.0 # 查看镜像是否下载成功 docker images | grep mysql # 先在宿主机创建数据目录 mkdir -p /data/mysql/data mkdir -p /data/mysql/conf m 阅读全文
posted @ 2026-03-01 13:38 是17阿哥呀 阅读(17) 评论(0) 推荐(0)
摘要: 配置docker镜像加速器 # 编辑Docker配置 sudo vim /etc/docker/daemon.json # 添加以下内容(使用国内镜像源) { "registry-mirrors": [ "https://docker.mirrors.ustc.edu.cn", "https://h 阅读全文
posted @ 2026-03-01 12:33 是17阿哥呀 阅读(33) 评论(0) 推荐(0)
摘要: 主要功能 自我修复:k8s可以监控容器的运行状况,并在发现容器出现异常时自动重启故障实例 弹性伸缩:k8s可以根据资源的使用情况自动地调整容器的副本数。例如,在高峰时段,k8s可以自动增加容器的副本数以应对更多的流量;而在低峰时段,k8s可以减少应用的副本数,节省资源 资源限额:k8s允许指定每个容 阅读全文
posted @ 2025-12-28 16:42 是17阿哥呀 阅读(63) 评论(0) 推荐(0)