01 2021 档案
摘要:默认的就有这功能 self.treeWidget.itemDoubleClicked.connect(self.treeWidgetOpenEditor)self.treeWidget.itemChanged.connect(self.treeWidg...
阅读全文
摘要:self.sender()
阅读全文
摘要:坑 暂时想到的一种方案是,使用map建立控件的索引
阅读全文
摘要:这里有个解决方案,先用着吧
阅读全文
摘要:this->setColumnWidth(0, 100); //设置列宽
阅读全文
摘要:fig, axs = plt.subplots(3, 2,constrained_layout=True, figsize=(10, 10)) 通过 figsize=(10, 10) 来调节, 感觉不是最佳的方案,先用吧 ...
阅读全文
摘要:,constrained_layout=True fig, axs = plt.subplots(3, 2,constrained_layout=True) 自动调整间隔,初步感觉效果还不错
阅读全文
摘要:numpy 按照 轴取平均 a= a.mean(axis = 0) 对第一个轴进行取平均;
阅读全文
摘要:colorVec1 = (["lightgray"] * (A.shape[0]) + ["darkorange"] * (B.shape[0]) + ["seagreen"] * (C.shape[0]) ...
阅读全文
摘要:这个人总结的真好! https://blog.csdn.net/taoqick/article/details/82255086
阅读全文
摘要:pop 后
阅读全文
摘要:plt.plot(x, y1, "-b", label="sine")plt.plot(x, y2, "-r", label="cosine")plt.legend(loc="upper left") 基本思想是分开画, 最后把legend给加上去 pl...
阅读全文
摘要:ImageJ 宏语言教程 https://imagej.nih.gov/ij/docs/macro_reference_guide.pdf https://imagej.nih.gov/ij/developer/macro/macros.html...
阅读全文
摘要:如何将jupyter notebook文件转换成pdf? 试了一下,效果确实不错
阅读全文
摘要:sns.clustermap 的col_colors如何赋值? https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors 以上的都不是,以下的才是答案: ...
阅读全文
摘要:oneVector2 = pd.DataFrame(data =np.random.random((1,3))) oneVector1 = pd.DataFrame(data =np.random.random((1,3))) 按照“行”进行拼接...
阅读全文
摘要:坑
阅读全文
摘要:%HOMEPATH%\pip\pip.ini [global] timeout = 300 index-url = https://mirrors.aliyun.com/pypi/simple [install] trusted-host=mirror...
阅读全文
摘要:Python list每个元素都改变一下、 别想着骚操作,直接for循环得了
阅读全文
摘要:time.strftime time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
阅读全文
摘要:def formPMStrgetOldName(PMStr): rootPath = r'D:\x\s\d\d' dirs = os.listdir(rootPath) for i in dirs: # 循环读取路径下的文件并筛选输出 ...
阅读全文
摘要:import shutil shutil.copy(oldName, newName)
阅读全文
摘要:datetime.date(2020, 11, 10) 直接 .strftime('%Y-%m-%d')
阅读全文
摘要:excel 统计哪些是重复的 =COUNTIF(A:A,A1)
阅读全文
摘要:select id, name, memofrom Awhere id in (select id from A group by id having count(1) >= 2) 有点点复杂,不如用excel来的快 =COUNTIF(A:A,A1) ...
阅读全文
摘要:select COUNT(DISTINCT concat(concat(aaa,'-'),bbbb)) from cccc.dddd where ddd= 9999
阅读全文
摘要:select concat(concat(aaa,'-'),bbb) as results111 from cccc where pid = 999
阅读全文
摘要:\CTEXsetup[format={\Large\bfseries}]{section}
阅读全文
摘要:\usepackage{geometry} %调整页面边框 \geometry{a4paper,scale=0.8}%调整到80%
阅读全文
摘要:直接用*不是点乘。是对应位置直接相乘; aaa[0][0]*bbb[0][0] 0.26414606106052124 ccc = aaa*bbb ccc[0][0] 0.26414606106052124 如果要用矩阵乘法,则需要这样做: ddd = a...
阅读全文
摘要:Python numpy设置的随机种子点不管用 坑,numpy坏qiu了
阅读全文
摘要:ip地址、子网掩码、默认网关和DNS服务器是什么含义 我觉这个写的非常详细。也很生动。 。但是有个问题: 为什么我的局域网的路由器给我分配的ip会冲突呢?导致我上网,速度很慢
阅读全文
摘要:有好几种解决方案: https://hexo.io/zh-cn/docs/asset-folders 先试试配置yml的方式; 确实解决了问题
阅读全文
摘要:Unable to merge unrelated histories in this repository. git pull --allow-unrelated-histories
阅读全文
摘要:PYQT设置完layout之后,无法正常展示。 可能的原因是,使用的控件不是mainWindow。更换为mainWindow就可以了
阅读全文
摘要:self.graphicsView.getView().setMenuEnabled(False) # 取消右键菜单
阅读全文
摘要:pyqtgraph如何使imageView的直方图不可见(以及ROI BUTTON 和 menubutton) self.gViewProjectVideo.getHistogramWidget().setVisible(False)self.gViewP...
阅读全文
摘要:plt.title('Interesting Graph',fontsize='large',fontweight='bold') 设置字体大小与格式 plt.title('Interesting Graph',color='blue') 设置字体颜色 p...
阅读全文
摘要:plt.figure() plt.imshow(image1) plt.figure() plt.imshow(image2) plt.figure() plt.imshow(image3) plt.imshow
阅读全文
摘要:plt.figure() plt.imshow(image1) plt.figure() plt.imshow(image2) plt.figure() plt.imshow(image3)
阅读全文
摘要:hog图片的可视化 from skimage.feature import hogimage = mpimg.imread(rootPath + r'crop-delete-images/0.03 s.jpg')pixelsPerCell = 32kwargs...
阅读全文
摘要:第一步:Fork原始仓库imagePy 1. fork ImagePy仓库 #将父仓库fork到自己账户下,XXXX/.git(A仓库) 2. conda create imagePy #在本地创建虚拟环境 3. pi...
阅读全文
摘要:Ctrl + R 替换 Ctrl + Shift + F 全局查找 Ctrl + Shift + R 全局替换
阅读全文
摘要:imageJ填充黑色 选中之后,直接delete就可以
阅读全文
摘要:String s= "12345678"; a = s.substring(0,s.length()-5) 1234 b = s.substring(s.length()-5, s.length()) 56789
阅读全文
摘要:意思是将库中的python模块用作脚本去运行。
阅读全文
摘要:numpy、pandas;(基础库,矩阵运算、列表检索,二维矩阵的相关计算); skimage(io:批量读取图像;hog,计算图像的HOG,图像配准); scipy里边有计算图像的二维傅里叶变换; sklearn;(TSNE、PCA); cv; joblib...
阅读全文
摘要:讲的还算清楚 https://blog.csdn.net/qq_29373285/article/details/82753306
阅读全文
摘要:https://www.cnblogs.com/fengmk2/archive/2008/04/21/1163766.html 讲的真好
阅读全文
摘要:https://www.cnpython.com/qa/68041 讲的相当不错 delayed(score_model) 相当于什么? 相当于score_model 因此,后边必须跟函数的参数 (data, n_test, cfg) dela...
阅读全文
摘要:vars()['aaa']中的var()是什么用法 var()好像返回了内存中的所有变量
阅读全文
摘要:曲线的滚动播放; pyqtgraph Scrolling Plots # -*- coding: utf-8 -*- """ Various methods of drawing scrolling plots. """ import initExample ## Add path to libra
阅读全文
摘要:# -*- coding: utf-8 -*-"""Various methods of drawing scrolling plots."""import initExample ## Add path to library (just for exampl...
阅读全文
摘要:# -*- coding: utf-8 -*-"""This example demonstrates the use of pyqtgraph's dock widget system.The dockarea system allows the desig...
阅读全文
摘要:python -m pyqtgraph.examples
阅读全文
摘要:坑,填不了,求助 2021年1月3日17:21:55 终于解决了!!! 感谢一下博主: 我去debug了一下 把以下的东西,添加到host中,就可以了: # localhost name resolution is handled within ...
阅读全文