上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 点击查看代码 # 读写二进制结构数组 from functools import partial from struct import Struct # Write def write_records(records, format, f): """Write a sequence of tuple 阅读全文
posted @ 2024-04-27 14:25 一枚码农 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 # 对二进制文件做内存映射 # 使用 mmap 模块对文件进行内存有映射操作 import mmap import os.path def memory_map(filename, access=mmap.ACCESS_WRITE): """ :param filename: :par 阅读全文
posted @ 2024-04-27 14:24 一枚码农 阅读(5) 评论(0) 推荐(0) 编辑
摘要: linux安装 # 安装命令: apt-get install httpd-tools # 检查是否安装成功 ab -V # ab参数说明 ab -h >>> -n 在测试会话中所执行的请求个数。默认时,仅执行一个请求。 -c 一次产生的请求个数。默认是一次一个。 -t 测试所进行的最大秒数。其内部 阅读全文
posted @ 2024-04-11 18:03 一枚码农 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1.安装 pip install Sphinx 2.使用 2.1文档手册 Sphinx 1.3.1 中文手册 (推荐查看) 教程 https://fengxc.me/基于python注释使用sphinx自动化生成API文档.html 2.2创建工程 新建一个文件夹sphinx_test, 并创建两个 阅读全文
posted @ 2024-01-09 09:45 一枚码农 阅读(59) 评论(0) 推荐(0) 编辑
摘要: .pyc 1.单个文件: python -m py_compile file.py 其中的 -m 相当于脚本中的import,这里的-m py_compile 相当于import py_compile 脚本: Code: import py_compile py_compile.compile('p 阅读全文
posted @ 2024-01-02 16:10 一枚码农 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 class BaseNode: """hdf5 file object relational model basic node class Including establishing model relationships and data sets, attribute value 阅读全文
posted @ 2024-01-02 10:05 一枚码农 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 基于KNN的图片识别 KNN算法介绍 https://zhuanlan.zhihu.com/p/25994179 项目简介 使用numpy和opencv实现的一个简易的knn图片识别模块 项目结构 - code: 存放代码 - create_collection.py: 创建数据集功能, 会将img 阅读全文
posted @ 2023-11-07 10:50 一枚码农 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 参考文档:https://juejin.cn/post/7129333439299321887 丹尼尔:Hi,蛋兄,周杰伦都出新专辑了,你咋还不更新啊,真的打算半年一更啊? 蛋先生:好像确实是这样,要不,择日不如撞日,今天聊聊? 丹尼尔:好啊,那聊些啥呢? 蛋先生:最近搞的事情需要实现两个应用项目的 阅读全文
posted @ 2023-08-18 17:21 一枚码农 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 字符串加密 ``` import base64 class StrEncrypt: """字符串加密""" def __init__(self): self._key = {'a', 'c', 'd', 'f', 'h', 'j', 'm', 'z'} self._un_key = {'~', '! 阅读全文
posted @ 2023-08-14 09:55 一枚码农 阅读(25) 评论(0) 推荐(0) 编辑
摘要: ### 参考文档 https://help.aliyun.com/document_detail/611711.html?spm=a2c4g.90499.0.0.34a056ddTu2WWq 先按照 **方法一:手动埋点上报Python应用数据** 步骤测试上报是否正常。 ### flas 上报 在 阅读全文
posted @ 2023-08-10 09:55 一枚码农 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页