if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) ui =MainWindow() ui.show() sys.exit(app.exec_())导入ui文件from PyQt4 import QtCor ...
分类:
其他好文 时间:
2019-11-19 01:07:50
阅读次数:
56
使用命令安装失败: 解决方法: 到这个网站下载自己对应的版本到本地,然后进行安装 : https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient 安装成功 ...
分类:
数据库 时间:
2019-05-01 23:48:36
阅读次数:
275
sys.argv就是运行程序时候获取命令行参数 app.exet_()是指程序一直循环运行直到主窗口被关闭终止进程(如果没有这句话,程序运行时会一闪而过) 那为什么要加一个sys.exit()呢? 其实我感觉这个sys.exit()其实没什么作用,他其实就是用来反映程序终止的状态的,在它有父进程的情 ...
分类:
移动开发 时间:
2018-12-22 16:46:01
阅读次数:
219
6月27日任务7.6 yum更换国内源7.7 yum下载rpm包7.8/7.9 源码包安装扩展1. 把源码包打包成rpm包 https://jin-yang.github.io/post/linux-create-rpm-package.htmlyum更换国内源所谓更改国内源就是把安装的地址换成国内的服务器。做法就是更换CentOS7-Base文件为163的文件。打开可以看到实际上是把原先的源地址
分类:
其他好文 时间:
2018-06-26 23:45:14
阅读次数:
222
1 Shopping_Cart=[] 2 3 commodity=[("iphone",5000), 4 ("bike",200), 5 ("book",100), 6 ("computer",3000), 7 ("car",10000), 8 ] 9 salary=input("please in... ...
分类:
编程语言 时间:
2018-02-28 10:37:49
阅读次数:
214
#购物车实例#Author:ge jianproduct_list = [ ('iphone',5800), ('Mac',9800), ('Bike',800), ('Watch',2800), ('Coffee',58), ('Alex python',158),]shopping_list = ...
分类:
编程语言 时间:
2018-01-28 15:39:07
阅读次数:
169
spark-streaming与flume整合 push http://spark.apache.org/docs/1.6.3/streaming-flume-integration.html ...
分类:
Web程序 时间:
2017-08-14 14:16:21
阅读次数:
301
首先写一个ads服务启动脚本 vim /etc/rc.d/init.d/ads #! /bin/sh start(){cd /opt/rojao/adsnohup java -jar app/ads.jar --conf conf --name a1 --conf-file conf/ads-htt ...
分类:
其他好文 时间:
2017-05-31 23:15:03
阅读次数:
252
http://thinkiii.blogspot.jp/2014/02/debug-with-slub-allocator.html The slub allocator in Linux has useful debug features. Such as poisoning, readzone ...
分类:
系统相关 时间:
2017-04-28 23:51:16
阅读次数:
421
[root@localhost ~]# cobblerTraceback (most recent call last): File "/usr/bin/cobbler", line 36, in <module>s stored sys.exit(app.main())ckstarts/. Thi ...
分类:
其他好文 时间:
2017-03-11 15:50:55
阅读次数:
409