上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页
摘要: parser = CurrentBuildParser(getLogger()) tds = "abc" assert parser.__getBuildName(tds) == 'target' 报错: AttributeError: 'CurrentBuildParser' object has 阅读全文
posted @ 2021-09-02 15:11 略略略—— 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1: 返回类/实例的方法名称: self.getName.__name__ 返回:getName 2: 返回实例的类名称: self.__class__.__name__ 返回: 在哪个子类中被调用就返回这个子类的名称 阅读全文
posted @ 2021-09-01 14:02 略略略—— 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 使用bitarray中的count() 方法返回的是长整型,比如 12L。 12L/30 或者 int(12L)/30 都返回0 需要改成 float(12L)/30 才会返回 0.4 阅读全文
posted @ 2021-08-31 14:39 略略略—— 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 单选+不定项选择,不定项大概就四五道题。在此把还记得的题目记录下来。 将一个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 略略略—— 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 即使是在添加了多行匹配参数 re.M 的模式下, match仍然只匹配第一行的开头。seach() 加上 re.M 参数后,会对每一行都进行搜索。 所以match存在的意义是什么···以后只需要记住search就好了,正则用^ 也能对开头进行匹配。 参考:https://docs.python.or 阅读全文
posted @ 2021-08-26 10:43 略略略—— 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 全程使用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 略略略—— 阅读(2681) 评论(0) 推荐(0) 编辑
摘要: 环境: 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 略略略—— 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 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 略略略—— 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 错误日志: %%[ ProductName: Distiller ]%% Mangal not found, using Courier. %%[ Error: invalidfont; OffendingCommand: xshow ]%% Stack: [337 259 106 130 259 阅读全文
posted @ 2021-08-16 15:46 略略略—— 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 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 略略略—— 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页