
python
python
core321
应无所住,而生其心。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
django(二):第一个项目
django(二):第一个项目原创 2024-08-29 15:11:52 · 958 阅读 · 0 评论 -
django(一):项目搭建
django(一):项目搭建原创 2024-08-29 11:10:20 · 598 阅读 · 0 评论 -
MaxKB(四):模型向量化
MaxKB(四):模型向量化原创 2024-08-28 16:55:49 · 1696 阅读 · 0 评论 -
MaxKB(三):通过修改代码去掉社区版限制(V1.4)
MaxKB(三):通过修改代码去掉社区版限制原创 2024-08-19 11:15:21 · 8739 阅读 · 20 评论 -
MaxKB(二):Ubuntu24.04搭建maxkb开发环境
Ubuntu24.04搭建maxkb开发环境原创 2024-08-16 17:04:22 · 3015 阅读 · 9 评论 -
python项目创建并激活虚拟环境
【代码】python项目创建并激活虚拟环境。原创 2024-08-12 11:25:13 · 181 阅读 · 0 评论 -
MaxKB(一):windows10搭建maxkb开发环境(劝退指南)
windows10搭建maxkb开发环境原创 2024-08-07 15:50:17 · 4899 阅读 · 7 评论 -
utf-8‘ codec can‘t decode byte 0xd3 in position
utf-8‘ codec can‘t decode byte 0xd3 in position原创 2024-08-06 17:31:08 · 727 阅读 · 0 评论 -
poetry配置镜像
poetry配置镜像原创 2024-08-05 16:21:58 · 2028 阅读 · 0 评论 -
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘C:\\Python312\\S
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\\Python312\\S原创 2024-07-15 11:45:01 · 1099 阅读 · 0 评论 -
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1158: illegal multibyte sequence
UnicodeDecodeError: 'gbk' codec can't decode byte 0x98 in position 1158: illegal multibyte sequence原创 2023-12-12 15:30:32 · 968 阅读 · 0 评论 -
yolov8模型训练、目标跟踪
yolov8模型训练、目标跟踪原创 2023-11-06 14:56:18 · 1288 阅读 · 9 评论 -
pip 安装 requirements.txt
【代码】pip 安装 requirements.txt。原创 2023-11-06 11:38:31 · 350 阅读 · 0 评论 -
OSTrack视频单目标跟踪
对于一个输入视频,只需在第一帧图像中用矩形框指定待跟踪目标,单目跟踪算法将在整个视频帧中持续跟踪该目标,输出跟踪目标在所有图像帧中的矩形框信息。原创 2023-10-30 15:56:24 · 1886 阅读 · 2 评论 -
PIL实现截图
from PIL import ImageGrabbbox = (760, 0, 1160, 1080)im = ImageGrab.grab(bbox)im.save(‘as.png’)原创 2023-10-30 10:18:00 · 170 阅读 · 0 评论 -
opencv在大图中抠小图
小图=大图[纵坐标最小值:纵坐标最大值,横坐标最小值:横坐标最大值]原创 2023-10-30 09:58:25 · 131 阅读 · 0 评论 -
PyCharm配置运行参数
PyCharm配置运行参数原创 2023-10-18 10:02:42 · 460 阅读 · 0 评论 -
opencv定位图片中的图案?
opencv定位图片中的图案原创 2023-10-12 15:54:17 · 584 阅读 · 0 评论 -
pip设置镜像
pip设置镜像原创 2023-09-28 13:56:57 · 246 阅读 · 0 评论 -
opencv实现目标跟踪及视频转存
读取视频第一帧,选择跟踪的目标。原创 2023-09-26 14:23:17 · 702 阅读 · 0 评论 -
OpenCV2 module ‘cv2‘ has no attribute ‘legacy‘
OpenCV2 module 'cv2' has no attribute 'legacy'原创 2023-09-26 11:14:25 · 1387 阅读 · 2 评论 -
python配置清华镜像
python配置清华镜像原创 2023-02-02 10:28:08 · 169 阅读 · 0 评论 -
Python基础(一)
#Python版本3.7# print("你好,世界!")# Python 标识符# 以单下划线开头_foo的代表不能直接访问的属性,需通过类提供的接口进行访问,# 不能用from xxx import *而导入;# 以双下划线开头的__foo代表类的私有成员,以双下划线开头和结尾的__foo__代表Python里特殊方法# 专用的标识,如__init__()代表类的构造函数。...原创 2019-06-25 10:36:41 · 133 阅读 · 0 评论 -
python爬取“王者农药”英雄皮肤 完整代码
执行方法,放到hello.py文件,在命令行执行:python hello.py即可import requestsimport os# 包含英雄名称信息的URLurl = 'http://pvp.qq.com/web201605/js/herolist.json'head = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x...转载 2019-06-05 16:52:31 · 346 阅读 · 0 评论 -
python3安装requests库【windows10】
python -m pip install requests原创 2019-06-05 16:17:00 · 676 阅读 · 0 评论 -
pycharm不能用ctrl + v 和ctrl+c
顶部菜单:在tools里把vim Emulator 对钩去掉就行原创 2019-06-25 11:07:58 · 2079 阅读 · 1 评论 -
Python控制语句(四)
# Pyhthon版本3.7# _*_ coding:UTF-8 _*_# 条件语句"""a =1while a < 7 : if(a % 2 == 0): print(a, "is even") else: print(a, "is odd") a += 1"""# for循环"""for letter in ...原创 2019-06-26 09:14:33 · 248 阅读 · 0 评论 -
Python 变量类型(二)
# Pyhthon版本3.7# _*_ coding:UTF-8 _*_# 变量赋值# Python变量赋值不需要类型声明# 每个变量在使用前必须赋值,变量赋值以后该变量才会被创建"""counter = 100 # 赋值整型变量miles = 1000.0 # 浮点型name = "John" # 字符串print(counter)print(miles)print(n...原创 2019-06-25 14:28:03 · 164 阅读 · 0 评论 -
Python字典(八)
# Pyhthon版本3.7# _*_ coding:UTF-8 _*_# Pyhton是一种可变容器模型,且可存储任意类型对象# 字典的每个键值key=>value对用冒号:分割,每个键值对之间用,分割# 整个字典包括在花括号{}中# 格式:d = {key1:value1, key2:value2}dict = {'a':1, 'b':2, 'b':3}print(di...原创 2019-06-28 14:49:23 · 192 阅读 · 0 评论 -
Python Number(数字)(五)
# Pyhthon版本3.7# _*_ coding:UTF-8 _*_# 类型转化tmp = int(1.1) # 将x转换为一个整数print(tmp)# tmp = long(1) # 将x转换为一个长整数(测试不可用)# print(tmp)tmp = float(1.1) # 将x转换到一个浮点数print(tmp)tmp = complex(1,2) # 创建一个...原创 2019-06-27 10:10:39 · 351 阅读 · 0 评论 -
Python列表(七)
# Pyhthon版本3.7# _*_ coding:UTF-8 _*_# 列表的数据项不需要具有相同的类型# 创建列表list1 = ['1', '2', '3']list2 = [1, 2, 3]list3 = ["1", "2", "3"]# 访问列表中的值print("list1[0]:", list1[0])print("list2[1:2]:", list2[1...原创 2019-06-28 11:18:26 · 237 阅读 · 0 评论 -
MongoDB初探(一)
1、临时启动切换到D:\mongodb\bin 目录执行如下命令,mongod --dbpath D:\MongoDB\data访问路径:http://localhost:270172、建立永久服务mongod.exe --logpath D:\mongodb\logs\mongodb.log --logappend --dbpath D:\mongodb\data --serviceN...原创 2019-06-26 21:27:13 · 191 阅读 · 0 评论 -
Python运算符(三)
# Pyhthon版本3.7# _*_ coding:UTF-8 _*_# * 乘-两个数相乘或是返回一个被重复若干次的字符串# % 取模-返回除法的余数# ** 幂-返回x的y次幂# // 取整除-返回商的整数部分"""a = 21b = 10c = 0c = a / bprint("c的值为:",c)c = a % bprint("c的值为:",c)a = 2...原创 2019-06-25 14:54:08 · 167 阅读 · 0 评论 -
Python字符串(六)
# Pyhthon版本3.7# _*_ coding:UTF-8 _*_# 访问字符串中的值# Python 不支持单字符类型,单字符在Python中也是作为一个字符串使用var1 = 'Hello World!';var2 = 'Python Runoob';print("var1[0]:",var1[0])print("var2[1:5]:",var2[1:5])# Py...原创 2019-06-27 16:27:15 · 285 阅读 · 0 评论