会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
这就是经典
我随便写写你随便看看
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
18
下一页
2021年9月2日
pytest 对类的私有方法进行测试
摘要: parser = CurrentBuildParser(getLogger()) tds = "abc" assert parser.__getBuildName(tds) == 'target' 报错: AttributeError: 'CurrentBuildParser' object has
阅读全文
posted @ 2021-09-02 15:11 略略略——
阅读(169)
评论(0)
推荐(0)
2021年9月1日
python 中双下划线 __name__ 用法记录
摘要: 1: 返回类/实例的方法名称: self.getName.__name__ 返回:getName 2: 返回实例的类名称: self.__class__.__name__ 返回: 在哪个子类中被调用就返回这个子类的名称
阅读全文
posted @ 2021-09-01 14:02 略略略——
阅读(116)
评论(0)
推荐(0)
2021年8月31日
python 长整型与地板除
摘要: 使用bitarray中的count() 方法返回的是长整型,比如 12L。 12L/30 或者 int(12L)/30 都返回0 需要改成 float(12L)/30 才会返回 0.4
阅读全文
posted @ 2021-08-31 14:39 略略略——
阅读(61)
评论(0)
推荐(0)
2021年8月29日
蔚来校招笔试题2021年8月28日
摘要: 单选+不定项选择,不定项大概就四五道题。在此把还记得的题目记录下来。 将一个C类网络划分20个子网, 最适合的子网掩码是多少 A: 255.255.255.240 B: 255.255.255.248 C: 255.255.255.252 D: 255.255.255.255 正确答案: B 某系统
阅读全文
posted @ 2021-08-29 22:37 略略略——
阅读(714)
评论(0)
推荐(0)
2021年8月26日
python 正则匹配 re.match() 和 re.search() 的区别
摘要: 即使是在添加了多行匹配参数 re.M 的模式下, match仍然只匹配第一行的开头。seach() 加上 re.M 参数后,会对每一行都进行搜索。 所以match存在的意义是什么···以后只需要记住search就好了,正则用^ 也能对开头进行匹配。 参考:https://docs.python.or
阅读全文
posted @ 2021-08-26 10:43 略略略——
阅读(285)
评论(0)
推荐(0)
2021年8月25日
python对图片进行base64编码,互相转换
摘要: 全程使用openCV,没有PIL 代码: 1 import base64 2 import cv2 3 import sys 4 import numpy as np 5 6 path = sys.argv[1] 7 8 with open(path, "rb") as image_file: 9
阅读全文
posted @ 2021-08-25 14:26 略略略——
阅读(3038)
评论(0)
推荐(0)
2021年8月24日
macOS下为python 2.7 安装配置virtualenv
摘要: 环境: macOS big sur, zsh pip install virtualenv 安装后提示: WARNING: The script virtualenv is installed in '/Users/tonyyan/Library/Python/2.7/bin' which is n
阅读全文
posted @ 2021-08-24 13:49 略略略——
阅读(736)
评论(0)
推荐(0)
2021年8月23日
macOS 安装 tesseract
摘要: brew install tesseract 报错: ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/webp-1.2.0.big_sur. #=#=# curl: (22) The requested URL returne
阅读全文
posted @ 2021-08-23 10:51 略略略——
阅读(527)
评论(0)
推荐(0)
2021年8月16日
word转pdf失败
摘要: 错误日志: %%[ ProductName: Distiller ]%% Mangal not found, using Courier. %%[ Error: invalidfont; OffendingCommand: xshow ]%% Stack: [337 259 106 130 259
阅读全文
posted @ 2021-08-16 15:46 略略略——
阅读(690)
评论(0)
推荐(0)
2021年8月13日
python 根据目录下的 requirements.txt安装所有依赖
摘要: pip install -r ./requirements.txt 参考: https://stackoverflow.com/questions/7225900/how-can-i-install-packages-using-pip-according-to-the-requirements-t
阅读全文
posted @ 2021-08-13 14:10 略略略——
阅读(135)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
18
下一页
公告