[置顶] Flask学习笔记

摘要: ### Flask学习笔记 官方教程:https://flask.palletsprojects.com/en/2.3.x/ W3CSchool: https://www.w3cschool.cn/flask_1/ 知乎资料:https://www.zhihu.com/people/im-greyl 阅读全文
posted @ 2022-06-03 00:51 朝朝暮Mu 阅读(88) 评论(0) 推荐(0) 编辑

[置顶] Pandas学习笔记

摘要: 1.groupby的用法 参考:https://zhuanlan.zhihu.com/p/101284491 2.Pandas中的map(), apply()和applymap()的应用 参考:https://blog.csdn.net/maymay_/article/details/8022905 阅读全文
posted @ 2022-03-23 11:36 朝朝暮Mu 阅读(59) 评论(0) 推荐(0) 编辑

[置顶] 微信小程序笔记_02

摘要: 在微信小程序中使用Echarts组件 github源码地址:https://github.com/ecomfe/echarts-for-weixin gitcode源码地址:https://gitcode.net/mirrors/ecomfe/echarts-for-weixin?utm_sourc 阅读全文
posted @ 2022-03-21 11:07 朝朝暮Mu 阅读(25) 评论(0) 推荐(0) 编辑

自定义json序列化器

摘要: import json from datetime import date, datetime class DateEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, datetime): return obj. 阅读全文
posted @ 2025-02-26 10:05 朝朝暮Mu 阅读(2) 评论(0) 推荐(0) 编辑

SSH相关

摘要: 配置云服务器登陆信息,可快速登陆,不用每次手动输入IP地址和密码 Host server1 HostName xxx.xxx.xxx.xxx User root IdentityFile ~/.ssh/id_rsa Host server2 HostName xxx.xxx.xxx.xxx User 阅读全文
posted @ 2025-02-23 22:23 朝朝暮Mu 阅读(3) 评论(0) 推荐(0) 编辑

ES聚合查询

摘要: Elasticsearch 聚合分析(Aggregations) Elasticsearch 聚合(Aggregations) 是一种强大的数据分析功能,类似于 SQL 的 GROUP BY,可以用于 统计、分组、计算平均值、最大值、最小值、直方图分析 等。 🔹 1. 聚合查询的基本结构 GET 阅读全文
posted @ 2025-02-20 22:58 朝朝暮Mu 阅读(6) 评论(0) 推荐(0) 编辑

MacOS安装Minio

摘要: 1. 安装 1.1 通过homebrew安装 推荐使用 homebrew工具进行安装,简单又快捷 brew install minio 通过以上工具安装后,运行文件默认路径为:/opt/homebrew/bin 可以通过brew --prefix快速定位到安装目录 1.2 通过Docker安装 拉取 阅读全文
posted @ 2025-02-17 16:23 朝朝暮Mu 阅读(38) 评论(0) 推荐(0) 编辑

集成qxb

摘要: def index(): key=b"key" iv=b"iv" # 创建 AES 加密实例 cipher = AES.new(key, AES.MODE_CBC, iv) tenant = "tenant" account = "account" # 前端获取的子账号唯一标识,不可写死,不可为中文 阅读全文
posted @ 2025-02-13 21:45 朝朝暮Mu 阅读(1) 评论(0) 推荐(0) 编辑

Jupyter Notebook 创建新的kernel

摘要: 在 macOS 上创建新的 Jupyter Notebook 内核(Kernel)并进行配置,一般需要使用 conda 或 virtualenv 创建一个新的 Python 环境,然后注册为 Jupyter 内核。以下是详细步骤: 1. 安装 Jupyter Notebook(如果尚未安装) 如果你 阅读全文
posted @ 2025-02-12 21:25 朝朝暮Mu 阅读(32) 评论(0) 推荐(0) 编辑

使用Alembic进行数据迁移

摘要: 在 大型 FastAPI 项目 中,数据库迁移(Database Migration)功能通常使用 Alembic 进行管理,并且存放在 migrations/ 目录下。 1. 数据库迁移的目录结构 在 FastAPI 项目中,数据库迁移的目录结构如下: my_fastapi_project/ │─ 阅读全文
posted @ 2025-02-02 17:50 朝朝暮Mu 阅读(48) 评论(0) 推荐(0) 编辑

Python操作邮件

摘要: 在 Python 中,你可以使用 smtplib 发送电子邮件,并使用 email 模块来构建邮件内容。下面是一个完整的示例,展示如何使用 SMTP 服务器发送电子邮件。 发送 Email 的步骤 ​ 1. 连接 SMTP 服务器(如 Gmail、Outlook、QQ 邮箱等)。 ​ 2. 构建邮件 阅读全文
posted @ 2025-01-30 09:46 朝朝暮Mu 阅读(18) 评论(0) 推荐(0) 编辑

python操作Redis

摘要: 1. 使用Homebrew安装Redis To install Redis using Homebrew on macOS, follow these steps: 1.Update Homebrew Before installing anything, it’s good practice to 阅读全文
posted @ 2025-01-30 09:45 朝朝暮Mu 阅读(4) 评论(0) 推荐(0) 编辑

Python操作RabbitMQ

摘要: 一、基本使用 使用Homebrew安装RabbitMQ # 更新 homebrew brew update # 安装 brew install rabbitmq # 查看安装位置 brew info rabbitmq # 启动 brew services start rabbitmq # 启动配置 阅读全文
posted @ 2025-01-30 09:43 朝朝暮Mu 阅读(11) 评论(0) 推荐(0) 编辑
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示