cekong

导航

随笔分类 -  python

1

计算机性能优化笔记
摘要:参考: 1.计算机性能 计算机组成原理|浅谈计算机性能 2.优化计算机性能 深入理解计算机系统之 优化程序性能篇 《深入理解计算机系统 第3版》学习笔记——第5章 优化程序性能(程序优化方法总结) 深入理解计算机系统:第5-6章 如何编写高效的程序呢?第一:我们必须选择一组合适的算法和数据结构,第二 阅读全文

posted @ 2019-10-21 15:44 cekong 阅读(315) 评论(0) 推荐(0)

udp 视频传输 python
摘要:根据UDP协议,从UDP数据包的包头可以看出,UDP的最大包长度是2^16-1的个字节。由于UDP包头占8个字节,而在IP层进行封装后的IP包头占去20字节,所以这个是UDP数据包的最大理论长度是2^16 - 1 - 8 - 20 = 65507字节。如果发送的数据包超过65507字节,send或s 阅读全文

posted @ 2019-09-11 09:12 cekong 阅读(3403) 评论(0) 推荐(0)

cv2笔记
摘要:笔记 阅读全文

posted @ 2019-08-28 10:09 cekong 阅读(219) 评论(0) 推荐(0)

Python openCV TypeError: labels data type = 18 is not supported
摘要:例如: 错误,需改为 阅读全文

posted @ 2019-08-27 17:19 cekong 阅读(1637) 评论(0) 推荐(0)

ret, frame = cap.read() ret为false?
摘要:参考:https://stackoverflow.com/questions/42210880/python-cv2-videocapture-does-not-work-cap-isopened-returns-false/52962367#52962367 阅读全文

posted @ 2019-08-27 15:54 cekong 阅读(2411) 评论(0) 推荐(0)

ssd笔记
摘要:论文:https://arxiv.org/pdf/1512.02325.pdf 代码:https://github.com/amdegroot/ssd.pytorch 代码需要修改的地方:SSD-Pytorch训练和测试自己的数据集(新手必看) 0.数据 pytorch框架下ssd代码的解析 pyt 阅读全文

posted @ 2019-08-05 15:10 cekong 阅读(488) 评论(0) 推荐(0)

torch.no_grad
摘要:PyTorch里的requires_grad、volatile及no_grad requires_grad=True 要求计算梯度 requires_grad=False 不要求计算梯度 with torch.no_grad()或者@torch.no_grad()中的数据不需要计算梯度,也不会进行反 阅读全文

posted @ 2019-07-15 08:58 cekong 阅读(646) 评论(0) 推荐(0)

python 一些工具库笔记
摘要:1.fire 可以用于自动生成命令行工具,也可以用于调试python 【Python】自动生成命令行工具 - fire 简介 python fire库的使用 2.argparse python自带的命令行参数解析包,可以用来方便地读取命令行参数 argparse基本用法 argparse模块见解(一 阅读全文

posted @ 2019-07-09 14:42 cekong 阅读(117) 评论(0) 推荐(0)

python图片处理(去重,缩放)
摘要:1.python文件夹下图片去重(参考删除重复文件或图片(去重)的python代码) 2.图片批量修改为同一尺寸(参考:https://www.cnblogs.com/neo-T/p/6477378.html) list去重 1. 2. 阅读全文

posted @ 2019-07-08 20:22 cekong 阅读(3582) 评论(0) 推荐(0)

更新源pip
摘要:国内镜像源列表豆瓣(douban) http://pypi.douban.com/simple/清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https:/ 阅读全文

posted @ 2019-02-19 11:02 cekong 阅读(737) 评论(0) 推荐(0)

Cookie和Session的区别
摘要:引用:https://blog.csdn.net/liyifan687/article/details/80077928 1.Cookie Cookies是服务器在本地机器上存储的小段文本并随每一个请求发送至同一服务器,是在客户端保持状态的方案。通俗讲,是访问某些网站后在本地存储的一些网站相关信息, 阅读全文

posted @ 2018-12-19 16:48 cekong 阅读(172) 评论(0) 推荐(0)

flask中flash不显示
摘要:需要在html文件中body中加入下列语句 阅读全文

posted @ 2018-12-18 13:39 cekong 阅读(1292) 评论(0) 推荐(0)

flask 知识积累
摘要:PythonWEB框架之Flask Flask快速入门,知识整理 Flask 框架 阅读全文

posted @ 2018-12-13 09:52 cekong 阅读(127) 评论(0) 推荐(0)

python中下划线
摘要:引用:https://blog.csdn.net/tcx1992/article/details/80105645?from=timeline Python中下划线的5种含义 class A(object): def __method(self): print("I'm a method in A" 阅读全文

posted @ 2018-12-12 09:15 cekong 阅读(124) 评论(0) 推荐(0)

pipenv知识积累
摘要:pip install pipenv 安装pipenv pipenv --python 3.6 指定某一Python版本创建环境 pipenv --py 显示Python解释器信息 pipenv --venv 显示虚拟环境信息 pipenv --where 显示目录信息 pipenv install 阅读全文

posted @ 2018-12-06 15:43 cekong 阅读(132) 评论(0) 推荐(0)

AttributeError: type object 'testClass' has no attribute 'testMothod'
摘要:点击"Unittest for test_post_API.testClass"按钮,点击”Edit configuration...“,弹出对话框Run/Debug configurations. 点左侧绿色“+”,选择python tests,选择unittests。 右侧选择configura 阅读全文

posted @ 2018-11-29 15:17 cekong 阅读(1080) 评论(0) 推荐(0)

python知识积累
摘要:python数据结构与算法https://www.yiibai.com/python/py_data_structure/python_data_structure_introduction.html 1. 安装requirements.txt依赖: pip install -r requireme 阅读全文

posted @ 2018-11-26 13:32 cekong 阅读(147) 评论(0) 推荐(0)

Python里的拷贝
摘要:可变数据类型:list、dict 不可变数据类型:int、float、string、tuple 引用 https://github.com/taizilongxu/interview_python 4 urllib%E5%92%8Curllib2%E7%9A%84%E5%8C%BA%E5%88%AB 阅读全文

posted @ 2018-11-19 09:58 cekong 阅读(116) 评论(0) 推荐(0)

python3 提示 name ‘reload’ is not defined
摘要:import importlib importlib.reload(sys) 阅读全文

posted @ 2018-11-16 13:28 cekong 阅读(249) 评论(0) 推荐(0)

pyinstaller基本操作
摘要:pyinstaller 打包错误http://www.fmwei.com/linux/pyinstaller-lib-error.html 阅读全文

posted @ 2018-11-16 13:09 cekong 阅读(148) 评论(0) 推荐(0)

1