仅列出标题 列出摘要
上一页 1 2 3 4 5 6 ··· 10 下一页
2014年7月10日

ubuntu 安装pyqt4 eric

摘要: tar xvf eric4-4.5.7.tar.gztar xvf eric4-i18n-zh_CN.GB2312-4.5.7.tar.gzcd eric4-4.5.7/python install.pyError: cannot import name Qsci==================... 阅读全文
posted @ 2014-07-10 23:06 baoyiluo 阅读(389) 评论(0) 推荐(0) 编辑
2014年6月12日

Python字符转换

摘要: Python提供了ord和chr两个内置的函数,用于字符与ASCII码之间的转换。如:>>> print ord('a')97>>> print chr(97)a下面我们可以开始来设计我们的大小写转换的程序了:复制代码代码如下:#!/usr/bin/env python#coding=utf-8de... 阅读全文
posted @ 2014-06-12 21:42 baoyiluo 阅读(243) 评论(0) 推荐(0) 编辑
2014年5月7日

Python-同时匹配邮箱和电话号码的正则表达式

摘要: 同时匹配邮箱和电话号码的正则表达式要想很完美的匹配,不太简单。各邮箱提供商的标准都多少有些许差别。如:163:6-18个字符,可使用字母、数字、下划线,需以字母开头。gmail:可以使用字母、数字和英文句点,不能使用除字母 (a-z)、数字和英文句号外的其他字符,下划线也是不可以的。yahoo:4至... 阅读全文
posted @ 2014-05-07 14:40 baoyiluo 阅读(1800) 评论(0) 推荐(0) 编辑
2014年4月27日

mysql 怎么查询出,分组后的总条数。。。也就是有多少组数。。。。怎么写

摘要: SELECT COUNT(*) AS 多少组数FROM( SELECT id FROM 表 GROUP BY id) subQuery;Mysql,有一个表含有以下字段,uid 发帖人id,title 发帖标题,tc 发帖内容,time 发帖时间,用一条语句算出昨天发帖书大于10的,一... 阅读全文
posted @ 2014-04-27 23:05 baoyiluo 阅读(1941) 评论(0) 推荐(0) 编辑

xvfb启动PyQt4程序报Unable to load library icui18n错误

摘要: xvfb启动PyQt4程序报如下错误:Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file: No such file or dir... 阅读全文
posted @ 2014-04-27 17:44 baoyiluo 阅读(1338) 评论(0) 推荐(0) 编辑

ubuntu下配置安装PYQT4

摘要: apt-get安装(快)sudo apt-get install libxext6 libxext-devlibqt4-devlibqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-designer qt4-qtconfig "python-qt4-*"pyt... 阅读全文
posted @ 2014-04-27 11:57 baoyiluo 阅读(577) 评论(0) 推荐(0) 编辑
2014年4月20日

一些常用的Bootstrap模板资源站

摘要: 2013-11-13 23:28:09超级Bootstrap模板库:http://www.wrapbootstrap.com/免费的HTML5 响应式网页模板:http://html5up.net/WP & Bootstrap:http://www.dxthemes.com/点击即全屏:https:... 阅读全文
posted @ 2014-04-20 15:07 baoyiluo 阅读(474) 评论(0) 推荐(0) 编辑
2014年4月12日

git clone 错误ca-certificates.crt

摘要: git clone https://github.com/baoyiluo/selfblog.gitCloning into 'selfblog'...error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/baoyiluo/selfblog.git/info/refsfatal: HTTP request failed解决方法: git config --g 阅读全文
posted @ 2014-04-12 23:33 baoyiluo 阅读(756) 评论(0) 推荐(0) 编辑

python通过ip获取地址

摘要: # -*- coding: utf-8 -*-url = "http://ip.taobao.com/service/getIpInfo.php?ip="#查找IP地址defip_location(ip): data = urllib.urlopen(url + ip).read() datadict=json.loads(data) for oneinfo in datadict: if "code" == oneinfo: if datadict[oneinfo] == 0: return datadict["data"][&qu 阅读全文
posted @ 2014-04-12 15:16 baoyiluo 阅读(402) 评论(0) 推荐(0) 编辑
2014年4月6日

表单验证代码实例:jquery.validate.js表单验证插件

摘要: jquery.validate.js是JQuery旗下的一个验证插件,借助JQuery的优势,我们可以迅速验证一些常见的输入,并且可以自己扩充自己的验证方法。使用前请先下载必要的JQuery插件:jquery-1.4.2.min.js和jquery.validate.min.js。下面演示如何使用jquery.validate.js插件进行表单的验证。这是HTML表单:用户名:密码:确认密码:问题:答案:真实姓名:证件号码:手机:电话:E-mail:邮编:这是我的表单验证代码:$(document).ready(function() {$.validator.setDefaults({subm 阅读全文
posted @ 2014-04-06 17:34 baoyiluo 阅读(420) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页