01 2021 档案

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

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