08 2021 档案

摘要:使用bitarray中的count() 方法返回的是长整型,比如 12L。 12L/30 或者 int(12L)/30 都返回0 需要改成 float(12L)/30 才会返回 0.4 阅读全文
posted @ 2021-08-31 14:39 略略略—— 阅读(53) 评论(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 略略略—— 阅读(685) 评论(0) 推荐(0) 编辑
摘要:即使是在添加了多行匹配参数 re.M 的模式下, match仍然只匹配第一行的开头。seach() 加上 re.M 参数后,会对每一行都进行搜索。 所以match存在的意义是什么···以后只需要记住search就好了,正则用^ 也能对开头进行匹配。 参考:https://docs.python.or 阅读全文
posted @ 2021-08-26 10:43 略略略—— 阅读(266) 评论(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 略略略—— 阅读(2884) 评论(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 略略略—— 阅读(694) 评论(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 略略略—— 阅读(501) 评论(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 略略略—— 阅读(438) 评论(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 略略略—— 阅读(122) 评论(0) 推荐(0) 编辑
摘要:pip -V pip 21.2.3 from /Library/Python/3.8/site-packages/pip (python 3.8) pip3 -V pip 21.2.3 from /Library/Python/3.8/site-packages/pip (python 3.8) p 阅读全文
posted @ 2021-08-13 14:05 略略略—— 阅读(18249) 评论(1) 推荐(3) 编辑
摘要:首先用vim 打开文件 vim a.py 选择整个文件内容 按esc进入normal模式 按gg将光标移动到文件开头 按 v 进入visual 模式 按 G选择所有 选择并复制整个文件 不要进入insert模式, :%y+ (冒号,百分号,字母y,加号) 回车。 参考: https://stacko 阅读全文
posted @ 2021-08-09 15:38 略略略—— 阅读(4207) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示