- 博客(31)
- 资源 (2)
- 收藏
- 关注
原创 Agent构建流程
示例流程:触发 → 拉取数据 → 执行 Prompt → 处理模型输出 →(可选)调用下游系统。用手动输入(示例数据)反复打磨 Prompt,直到在所有示例上表现稳定。列出 Prompt 需要的上下文(API、数据库、文件等):编写脚本批量跑例子,度量准确率、召回率、F1 等指标。上线后监控:调用量、延迟、成本、错误率、安全与合规风险。按需扩展新功能、接入更多系统,并重复上述测试与迭代流程。明确每一步的输入、决策节点、输出,以及所需工具/数据。编写编排逻辑:按需调用数据源,整合结果,再传给模型。
2026-02-04 20:03:03
298
原创 python内置函数
python内置函数 dir()函数 dir() 函数一个排好序的字符串列表,内容是一个模块里定义过的名字。 返回的列表容纳了在一个模块里定义的所有模块,变量和函数。 globals() 和 locals() 函数 根据调用地方的不同,globals() 和 locals() 函数可被用来返回全局和局部命名空间里的名字。 如果在函数内部调用 locals(),返回的是所有能在该函数里访问的命名。 如果在函数内部调用 globals(),返回的是所有在该函数里能访问的全局名字。 两个函数的返回类型都是字典。所
2021-12-06 10:44:39
194
原创 Python学习从入门到精通网站汇总
1、python入门 https://github.com/jackfrued/Python-100-Days 2、python进阶 https://docs.pythontab.com/interpy/decorators/deco_class/ https://python3-cookbook.readthedocs.io/zh_CN/latest/index.html 3、第三方库 padans: https://pandas.pydata.org/docs/ numpy: https://docs.
2021-12-06 10:43:03
352
原创 ubuntu下pip安装失败
1、文件权限问题,在pip前添加sudo,有时候文件太大或者网络不好也会报类似的错 Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-0jtgof/pillow/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, fil
2021-11-30 20:05:34
3137
原创 Docker
Docker 容器隔离, 环境集成配置:Hadoop,jar,Mysql, 解决运行环境和配置问题软件容器,容器虚拟化技术 Docker的应用场景 Web应用的自动化打包、发布和动态伸缩 持续集成、自动化测试、持续部署与交付 作为微服务架构使用:部署无状态服务,同虚拟机互补使用,实现隔离性 作为微服务架构使用:部署有状态服务,需要十分了解应用 适合部署跨云,跨Region,跨数据中心,混合云场景下的应用部署和弹性伸缩 以容器作为应用的交付物,保持环境一致性,树立不可变更基础设施的理念 用于管理变更,变更频
2021-11-17 16:50:45
694
原创 python爬虫学习笔记
python爬虫学习笔记 用程序模拟浏览器,输入一个网站从该网站中获取资源或者内容 服务器渲染:在服务器端直接把数据和html整合在一起,统一返回给浏览器 客户端渲染:在浏览器端、第一次请求只要一个html骨架,第二次请求拿到数据,进行数据展示,在页面源代码中,看不到数据 浏览器抓包工具 HTTP超文本传输协议 HTML超文本标记语言 解析工具 re解析 bs4解析 xpath解析 请求: 请求行->请求方式 请求url地址协议 请求头->放服务器使用的附加地址 请求体
2021-11-17 16:50:12
841
原创 Django个人博客搭建
Django个人博客搭建 工具 : Pycharm Python3.8 前端:CSS2+HTML5+JavaScript Django3.0 Git版本管理器 Github网站或者gitee 前期项目创建: 创建文件夹项目 mkdir my_bolg 创建项目django-admin startproject bolg cd bolg 创建虚拟环境:py -m venv env 启动虚拟环境:env\Scripts\activate 创建项目:django
2021-11-17 16:49:24
924
原创 python函数
python内置函数 dir()函数 dir() 函数一个排好序的字符串列表,内容是一个模块里定义过的名字。 返回的列表容纳了在一个模块里定义的所有模块,变量和函数。 globals() 和 locals() 函数 根据调用地方的不同,globals() 和 locals() 函数可被用来返回全局和局部命名空间里的名字。 如果在函数内部调用 locals(),返回的是所有能在该函数里访问的命名。 如果在函数内部调用 globals(),返回的是所有在该函数里能访问的全局名字。 两个函数的返回类型都是字典。所
2021-11-17 16:48:04
670
原创 Django-ORM
Django之ORM框架 ORM DB 类 数据表 - - 对象 数据行 - - 属性 字段 创建应用 python3 manage.py startapp bookstore 在models.py下编写模型类 class 模型类名(models.Model): 字段名=models.字段类型(字段选项) 迁移同步 #生成模型类 python3 manage.py makemigrations #同步 python3 manage.py migrate 任何关
2021-10-30 21:56:52
169
原创 Django报错
Django报错解决 执行数据库迁移 python3 manage.py makemigrations python3 manage.py migrate Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File
2021-10-30 19:43:48
339
原创 django数据库
django安装数据库并创建数据库 1、检测有没有安装数据库 sudo apt list --installed -E 'libmysqlclient-dev|python3-dev' 安装pip3依赖 sudo apt-get install python3-dev default-libmysqlclient-dev 安装mysql sudo pip3 install mysqlclient 由于安装mysql没有输入密码所以先修改密码 sudo gedit /etc/mysql/mysql.co
2021-10-29 18:55:26
145
原创 django创建
django创建 创建一个文件夹 mkdir /python/django/test01 创建一个django项目 django-admin startproject mysite3 进入django项目 cd mysite3 启动django python3 manage.py runserver
2021-10-29 15:30:26
119
原创 2021-10-13
项目代码地址:1. 眨眼检测 https://github.com/statisticszhang/drowsinessDetector2. 目标跟踪https://github.com/statisticszhang/object_tracking3. 道路检测https://github.com/statisticszhang/lane_detection4. 人脸关键点检测https://github.com/statisticszhang/faceLandmarks模型文件:https://gith
2021-10-13 20:56:18
169
原创 2021-10-01
github python学习资料 https://github.com/reorx/httpstat 记录鼠标键盘重复任务 https://github.com/taojy123/KeymouseGo https://github.com/yidao620c/python3-cookbook https://github.com/realpython/python-guide https://github.com/jackfrued/Python-100-Days https://github.com/e
2021-10-01 23:37:52
120
转载 2021-09-29
ubuntu 20.04 sudo rosdep init报错 ERROR: default sources list file already exists: /etc/ros/rosdep/sources.list.d/20-default.list Please delete if you wish to re-initialize 由于网站服务器被屏蔽所以转国内源
2021-09-29 12:46:11
125
原创 ubuntu20.04存在丢包
执行后 rosdep install --from-paths src --ignore-src -r -y --rosdistro melodic WARNING: given --rosdistro melodic but ROS_DISTRO is "foxy". Ignoring environment. ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependen
2021-09-26 08:49:59
1271
原创 ubuntu20.04 安装依赖问题
下列软件包有未满足的依赖关系: ros-melodic-ros-controllers : 依赖: ros-melodic-ackermann-steering-controller 但是它将不会被安装 依赖: ros-melodic-diff-drive-controller 但是它将不会被安装 依赖: ros-melodic-effort-controllers 但是它将不会被安
2021-09-26 08:41:06
1400
原创 ubuntu 20.04 报错rosdep update
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]: <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml) ERROR
2021-09-26 08:30:47
254
原创 2021-09-20
import math import matplotlib.pyplot as plt import numpy as np # Fast SLAM covariance Q = np.diag([3.0, np.deg2rad(10.0)]) ** 2 R = np.diag([1.0, np.deg2rad(20.0)]) ** 2 # Simulation parameter Qsim = np.diag([0.3, np.deg2rad(2.0)]) ** 2 Rsim = np...
2021-09-20 14:58:07
318
原创 Python学习笔记
Python学习笔记 基础知识 Liunx基础 Liunx是多用户操作系统没有盘符的概念拥有目录结构,在home文件夹中可以存储多个用户每一个用户管理自己相对于的文件夹,而windos是单用户 参考:https://www.runoob.com/linux/linux-system-contents.html /root: 该目录为系统管理员,也称作超级权限者的用户主目录。 /sbin: s 就是 Super User 的意思,是 Superuser Binaries (超级用户的二进制文件) 的缩写,这里
2021-09-13 19:46:37
539
原创 shell 学习笔记
shell 学习笔记 shell脚本就是将完成一个任务的所有命令按照先后顺序,自上而下写入到一个文本文件然后给予执行权限。 chomd +x 文件名 ./文件名#执行 文件名名要有意义 脚本编写 #!/usr/bin/bash //#!是特例,解释运行的环境 #Author //作者 #Created //Time时间 #描述 运行脚本 1、给执行权限 chmod +x、用路径运行 2、解释器直接运行 bash、sh 特殊符号 ~:家目录 -:上一级目录 !:执行历史命令 + 、—、*、/, %:对应数
2021-05-20 21:01:42
125
原创 2021-05-17
filepath=$1 Get username from file and Add user cat $filepath | while read username do # Create a dir with username mkdir -p /var/general/users/$username/ useradd -d /var/general/users/$username/ $username if [ $? -eq 0 ];then echo "user ${username}
2021-05-17 20:59:17
115
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅