摘要: 实时行情: http://stockhtm.finance.qq.com/sstock/ggcx/600103.shtml http://qt.gtimg.cn/q=sh600103 http://web.sqt.gtimg.cn/q=sh600103 有当天总成交量 外盘内盘 买卖各5挡 成交量 阅读全文
posted @ 2019-01-16 18:34 m*x*h 阅读(4412) 评论(0) 推荐(0) 编辑
摘要: demo 01: #!/usr/bin/python #encoding:utf-8 import urllib import os def Schedule(a,b,c): ''' a:已经下载的数据块 b:数据块的大小 c:远程文件的大小 ''' per = 100.0*a*b/c if per 阅读全文
posted @ 2019-01-16 18:26 m*x*h 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 多个界面跳转 阅读全文
posted @ 2018-10-17 12:12 m*x*h 阅读(2347) 评论(0) 推荐(0) 编辑
摘要: db的帮助文档 输入:db.help(); db.AddUser(username,password[, readOnly=false]) 添加用户 db.auth(usrename,password) 设置数据库连接验证 db.cloneDataBase(fromhost) 从目标服务器克隆一个数 阅读全文
posted @ 2018-09-04 19:25 m*x*h 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 我们先介绍一下 MongoDB 的聚合功能,聚合操作主要用于对数据的批量处理,往往将记录按条件分组以后,然后再进行一系列操作,例如,求最大值、最小值、平均值,求和等操作。聚合操作还能够对记录进行复杂的操作,主要用于数理统计和数据挖掘。在 MongoDB 中,聚合操作的输入是集合中的文档,输出可以是一 阅读全文
posted @ 2018-09-04 19:22 m*x*h 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 今天在做pyqt5的多页面跳转时遇到问题,一点击button按钮,程序会崩溃。在网上查了下,应该是当窗口A调用窗口B的时候,两个窗口不能是同一类型。我写的时候把A、B同时写成了QWidget。把窗口B改成Dialog类型后,就可以成功调用了;如果想关联更多窗口,方法相似即可。 大概的模板如下: cl 阅读全文
posted @ 2018-09-04 18:00 m*x*h 阅读(1764) 评论(0) 推荐(0) 编辑
摘要: CMD下使用pip安装PyQt4或者PYQT5 这里要注意,你下载的PYQT5不包含QT designer 还要:pip3 install PyQt5-tools,好像Pyqt5中将designer分离了或者查看源码:https://github.com/altendky/pyqt5-tools,编 阅读全文
posted @ 2018-08-28 19:19 m*x*h 阅读(3371) 评论(0) 推荐(1) 编辑
摘要: 官方文档: http://pyqt.sourceforge.net/Docs/PyQt4/classes.html 啄木鸟社区:https://wiki.woodpecker.org.cn/moin/The_PyQt4_tutorial PyQt教程:http://www.qaulau.com/bo 阅读全文
posted @ 2018-08-28 18:21 m*x*h 阅读(140) 评论(0) 推荐(0) 编辑
摘要: http://zetcode.com/gui/pyqt5/ http://www.thehackeruniversity.com/2014/01/23/pyqt5-beginner-tutorial/ http://www.thehackeruniversity.com/2014/01/26/pyq 阅读全文
posted @ 2018-08-28 18:20 m*x*h 阅读(346) 评论(0) 推荐(0) 编辑
摘要: APScheduler的全称是Advanced Python Scheduler。它是一个轻量级的 Python 定时任务调度框架。APScheduler 支持三种调度任务:固定时间间隔,固定时间点(日期),Linux 下的 Crontab 命令。同时,它还支持异步执行、后台执行调度任务。 阅读全文
posted @ 2018-08-26 13:43 m*x*h 阅读(2124) 评论(0) 推荐(0) 编辑