Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
FastAPI入门笔记
1. 快速上手@app.get 是一个装饰器,当用户访问根路径 “/“ 且请求方法是 GET 时,执行下面的函数 1234567891011# practice.pyfrom fastapi import FastAPIapp = FastAPI()@app.get("/")def welcome(): return {"message": "Hello!"}# uvicorn practice:app --reload 以运行服务器# 这里的app是实例名 2.获取参数1.路径参数123@app.get("/item_id/{item_id}")def item(item_id: int): # 指定int类型 return {"item_id": item_id, "description": f"这是第{item_id}个商品"} ...
常用链接/参考
这一篇用来放置一些常用的链接和一些教程() 博客相关域名域名比价 https://zh-hans.tld-list.com 域名托管 https://www.cloudflare.com/ Hexohexo指令 https://hexo.io/zh-cn/docs/commands 博客格式参考butterfly https://butterfly.js.org/ hexo主题库 https://hexo.io/themes/ 开发相关前端页面审美积累 https://dribbble.com/图片压缩 https://tinypng.com 或 https://squoosh.app 大模型相关平台硅基流动 https://www.siliconflow.cn/ 编程colab https://colab.research.google.com/ 学习相关编程语言菜鸟教程 https://www.runoob.com/ 算法题leetcode https://leetcode.cn/ 实用工具绘图坚果云 https://www.jianguoyun.com/ 配色参考 http...
java入门笔记1——基础语法速记
大概记录一下java基础语法ww 1. 数据类型与变量8大基本数据类型 类型 描述 大小 示例 byte 字节 8-bit byte b = 100; short 短整型 16-bit short s = 1000; int 整型 32-bit int i = 123; long 长整型 64-bit long l = 123L; (末尾加L) float 单精度 32-bit float f = 10.5f; (末尾加f) double 双精度 64-bit double d = 20.5; char 字符 16-bit char c = 'A'; (单引号) boolean 布尔 1-bit boolean flag = true; 引用类型123String str = "Hello"; // 字符串对象Integer num = 10; // 包装类 (自动装箱)int[] arr = {1, 2}; // 数组 2. 运算符 (Operators) 算术: +...
Hexo 博客 + GitHub Actions + Cloudflare Pages 自动部署
Hexo 博客 + GitHub Actions + Cloudflare Pages 自动部署刚刚做了一下博客的自动部署和关联我之前买的域名,差点给我折腾4,写一篇教程好了。 本文档记录了如何将本地 Hexo 博客源码托管在 GitHub,并通过 GitHub Actions 自动构建并推送到 Cloudflare Pages (Direct Upload 模式) 的完整流程。 1. 准备工作 本地已安装 Node.js 和 Hexo 和 git 和 cnpm。可以用node -v hexo -v git –version cnpm - v查看有没有安装(没有安就npm install -g cnpm全局安装) 拥有一个 GitHub 账号。 拥有一个 Cloudflare 账号。 2. 本地 Hexo 与 GitHub 仓库关联2.1 初始化与主题修复如果你使用了第三方主题(如 Butterfly)并是通过 git clone 下载的,必须删除主题内的 .git 文件夹,否则会导致子模块冲突,Cloudflare 无法拉取主题文件。 12345678910111213# 1...
我的第一篇博客
这是我的第一篇博客,这里大概会更新一些已经做好的项目/在做的项目/新坑记录ww
