会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
刘宏缔的架构森林
专注架构的博客
博客园
首页
新随笔
联系
订阅
管理
2026年3月20日
flask: 使用shell执行代码中的函数
摘要: 一,启动shell $ source venv/bin/activate ((venv) ) [lhdop@blog enterprise_library_api]$ flask shell 二,执行函数 >>> from app.jobs.util import import_china_city
阅读全文
posted @ 2026-03-20 11:24 刘宏缔的架构森林
阅读(0)
评论(0)
推荐(0)
2026年3月12日
flask:接收json参数
摘要: 一,python代码: from flask import jsonify, g, request from . import api import json @api.route("/manage/save", methods=["POST"]) def manage_save(): raw_da
阅读全文
posted @ 2026-03-12 21:57 刘宏缔的架构森林
阅读(2)
评论(0)
推荐(0)
postman: linux安装postman
摘要: 一,从官网下载安装包: 地址: https://www.postman.com/downloads/ 二,下载后在桌面创建desktop链接文件 链接到下面的文件即可:
阅读全文
posted @ 2026-03-12 21:35 刘宏缔的架构森林
阅读(4)
评论(0)
推荐(0)
2026年3月11日
flask: migrate检测不到server_default值的变化
摘要: 解决: 修改migrations/env.py 在 conf_args = current_app.extensions['migrate'].configure_args 下方增加一行: conf_args['compare_server_default'] = True 如下: conf_arg
阅读全文
posted @ 2026-03-11 17:35 刘宏缔的架构森林
阅读(3)
评论(0)
推荐(0)
2026年3月8日
ai相关:配置claude使用deepseek模型
摘要: 一,配置相关的全局变量: $ sudo vi /etc/profile [sudo] password for liuhongdi: 在文件末尾增加: # claude code export ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropi
阅读全文
posted @ 2026-03-08 22:41 刘宏缔的架构森林
阅读(16)
评论(0)
推荐(0)
ai相关:claude启动时的提示信息
摘要: 一,询问是否相信当前目录? 二,提示当前在home目录,应该在项目目录下启动
阅读全文
posted @ 2026-03-08 22:22 刘宏缔的架构森林
阅读(2)
评论(0)
推荐(0)
ai相关:claude code启动时报错(linux平台)
摘要: 一,报错信息: Unable to connect to Anthropic services Failed to connect to api.anthropic.com: ERR_BAD_REQUEST如图: 二,原因: 这是因为claude code首次启动时会检查用户地区 部分地区因法律原因
阅读全文
posted @ 2026-03-08 22:07 刘宏缔的架构森林
阅读(98)
评论(0)
推荐(0)
ai相关:安装claude code
摘要: 一,安装node和npm 二,安装claude npm install -g @anthropic-ai/claude-code 查看安装路径: $ whereis claude claude: /home/liuhongdi/.nvm/versions/node/v24.13.0/bin/clau
阅读全文
posted @ 2026-03-08 21:14 刘宏缔的架构森林
阅读(14)
评论(0)
推荐(0)
dart:函数添加async和不添加async的区别
摘要: 一,代码: 说明: 使用async关键字,你可以在函数内部使用await关键字来等待另一个异步操作的完成,而不会阻塞当前线程的执行。 Future<String> getMyName() { //await Future.delayed(Duration(seconds: 2)); //函数内部不能
阅读全文
posted @ 2026-03-08 13:01 刘宏缔的架构森林
阅读(3)
评论(0)
推荐(0)
dart: 返回Future类型
摘要: 一,代码: Future<String> getMyName() { return Future.delayed(Duration(seconds: 2), () => '老孟'); } void myclick() async{ //错误得到Future类型返回 var name = getMyN
阅读全文
posted @ 2026-03-08 12:32 刘宏缔的架构森林
阅读(4)
评论(0)
推荐(0)
下一页
公告