上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 87 下一页

2015年8月3日

摘要: 'accept_charsets','accept_encodings','accept_languages','accept_mimetypes','access_route','application','args','authorization','base_url','blueprint',... 阅读全文
posted @ 2015-08-03 14:37 帅胡 阅读(1473) 评论(0) 推荐(0) 编辑

2015年7月28日

摘要: 1.判断undefined:Js代码vartmp=undefined;if(typeof(tmp)=="undefined"){alert("undefined");}说明:typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"func... 阅读全文
posted @ 2015-07-28 19:05 帅胡 阅读(240) 评论(0) 推荐(0) 编辑

2015年7月17日

摘要: QDateTimeEdit/QDateEditclear (self)QDate date (self)QDateTime dateTime (self)setDate (self, QDate date)setDateTime (self, QDateTime dateTime)setTime (... 阅读全文
posted @ 2015-07-17 15:35 帅胡 阅读(10697) 评论(1) 推荐(0) 编辑

2015年7月16日

摘要: 经常有人问到如何在一个主窗口中打开一个对话框,然后在确认对话框之后,开启另一个窗口进行后续操作,要求主窗口和最终的窗口之间都能响应用户操作,也就是非模态窗口。随手写了几行代码,简要示意。:::python#!/usr/bin/python# -*- coding: utf-8 -*-# Gui (i... 阅读全文
posted @ 2015-07-16 09:28 帅胡 阅读(3652) 评论(0) 推荐(0) 编辑

2015年7月15日

摘要: QComboBoxaddItem (self, QString text, QVariant userData = QVariant())addItem (self, QIcon icon, QString text, QVariant userData = QVariant())addItems ... 阅读全文
posted @ 2015-07-15 16:05 帅胡 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: QWidgetbool close (self)QRect geometry (self)hide (self)int height (self)setStatusTip (self, QString)setWindowIcon (self, QIcon icon)setWindowTitle (s... 阅读全文
posted @ 2015-07-15 15:28 帅胡 阅读(494) 评论(0) 推荐(0) 编辑

2015年7月13日

摘要: 1. 使用base64s1 = base64.encodestring('hello world')s2 = base64.decodestring(s1)print s1, s2结果12aGVsbG8gd29ybGQ=hello worldBase64编码,64指A-Z、a-z、0-9、+和/这6... 阅读全文
posted @ 2015-07-13 11:09 帅胡 阅读(584) 评论(0) 推荐(0) 编辑

2015年7月11日

摘要: python编码问题:'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)这种问题有三种原因:第一个是文件的编码采用的是ANSI格式编码,这时候改变编码方式为以UTF-8无BOM格式编码(使用not... 阅读全文
posted @ 2015-07-11 12:31 帅胡 阅读(3695) 评论(0) 推荐(0) 编辑

2015年7月10日

摘要: Node1:#ssh-keygen-trsa这一步是生成密钥#ssh-copy-id-i~/.ssh/id_rsa.pubroot@node2.xueping365.com~/.ssh/id_rsa.pub是密钥得得绝对路径,root@node2.xueping365.com是目的地址Node2:#... 阅读全文
posted @ 2015-07-10 16:04 帅胡 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 经常有人问到如何在一个主窗口中打开一个对话框,然后在确认对话框之后,开启另一个窗口进行后续操作,要求主窗口和最终的窗口之间都能响应用户操作,也就是非模态窗口。随手写了几行代码,简要示意。:::python#!/usr/bin/python# -*- coding: utf-8 -*-# Gui (i... 阅读全文
posted @ 2015-07-10 13:52 帅胡 阅读(369) 评论(0) 推荐(0) 编辑
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 87 下一页

导航