会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
华小电
新随笔
管理
上一页
1
···
18
19
20
21
22
23
24
下一页
2020年1月15日
test for OCr
摘要:
阅读全文
posted @ 2020-01-15 10:42 华小电
阅读(91)
评论(0)
推荐(0)
2020年1月9日
PIP 更换国内安装源
摘要: linux: 修改 ~/.pip/pip.conf (没有就创建一个), 内容如下: [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple windows: 直接在user目录中创建一个pip目录,如:C:\Users\xx\pi
阅读全文
posted @ 2020-01-09 05:08 华小电
阅读(2214)
评论(0)
推荐(1)
2019年12月24日
linux安装QT-Designer两种方法
摘要: 1、安装Qt-Creator, Qt-Creator自带了qt-designer 2、安装qt5-default,qttools5-dev-tools
阅读全文
posted @ 2019-12-24 15:54 华小电
阅读(2894)
评论(0)
推荐(0)
2019年12月17日
Python 抓取网页tag操作
摘要: 1. 获取操作tag 获取操作tag的接种方式: soup.find_all(name=None, attrs={}, recursive=True, text=None, limit=None, **kwargs),返回符合条件的所有标签,查找不到则返回[],可以传递标签名,标签属性,关键字参数,
阅读全文
posted @ 2019-12-17 17:30 华小电
阅读(2320)
评论(0)
推荐(0)
2019年12月12日
AttributeError: 'PyQt5.QtCore.pyqtSignal' object has no attribute 'connect'
摘要: pyqt5信号要定义为类属性 #!/usr/bin/python3 # -*- coding: utf-8 -*- from PyQt5.Qt import * import sys class Win(QWidget): my_singal = pyqtSignal(str) def __init
阅读全文
posted @ 2019-12-12 08:40 华小电
阅读(3479)
评论(0)
推荐(0)
2019年11月5日
在PyQt5中显示matplotlib绘制的图形
摘要: import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import * from plot_pyqt import PlotCanvas class App(QMainWindow): def __init__(self): supe
阅读全文
posted @ 2019-11-05 11:12 华小电
阅读(9009)
评论(0)
推荐(1)
numpy.random.randn()与numpy.random.rand()的区别
摘要: numpy中有一些常用的用来产生随机数的函数,randn()和rand()就属于这其中。 numpy.random.randn(d0, d1, …, dn)是从标准正态分布中返回一个或多个样本值。 numpy.random.rand(d0, d1, …, dn)的随机样本位于[0, 1)之间。
阅读全文
posted @ 2019-11-05 11:04 华小电
阅读(254)
评论(0)
推荐(0)
2019年11月3日
PyQt5 对话框示例
摘要: import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * class Example(QMainWindow): def __init__(self): super().__init__() self.initUI() de
阅读全文
posted @ 2019-11-03 15:00 华小电
阅读(233)
评论(0)
推荐(0)
2019年10月26日
日期时间设置 QDate, QTime, QDateTime
摘要: 结果显示: UTC (Universal Coordinated time) time 输出结果: daysTo()计算从一个日子到另一日子之间间隔的天数 输出结果:
阅读全文
posted @ 2019-10-26 11:38 华小电
阅读(4347)
评论(0)
推荐(0)
QToolTip 设置提示信息
摘要: import sys from PyQt5.QtWidgets import (QWidget, QToolTip, QPushButton, QApplication) from PyQt5.QtGui import QFont class Example(QWidget): def __init__(self): super().__init__() self.initUI() def ini
阅读全文
posted @ 2019-10-26 11:28 华小电
阅读(577)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
下一页