正则表达式就是对字符串的操作: 匹配 ,查找,替换,分割。。1.php中常用的正则表达式相关的函数preg_match();preg_match_all();preg_replace()str_replace()preg_split()2.php的正则prel的语法什么贪婪,。。。等等
分类:
其他好文 时间:
2014-09-01 10:35:42
阅读次数:
205
python中自带了处理python的模块,使用时候直接import json即可。使用loads方法即可将json字符串转换成python对象,对应关系如下: JSON Python object dict array list string unicode num...
分类:
Web程序 时间:
2014-09-01 09:18:02
阅读次数:
269
capitalize()把字符串的第一个字符改为大写casefold()把整个字符串的所有字符改为小写center(width)将字符串居中,并使用空格填充至长度width的新字符串count(sub[,start[,end]])返回sub在字符串里边出现的次数,start和end参数表示范围,可选...
分类:
编程语言 时间:
2014-09-01 09:15:22
阅读次数:
195
一,MySQL-Python插件Python里操作MySQL数据库,需要Python下安装访问MySQL数据库接口API包即插件,从而使得Python2.7能访问操作MySQL数据库。MySQL软件可以去官网下载:http://www.mysql.com/二,访问MySQL数据库1,连接数据库mysql基本格式:connect([host=]‘ip‘,[user=]‘use..
分类:
数据库 时间:
2014-09-01 02:56:23
阅读次数:
250
关闭ExecutorService
ExecutorService提供了两种关闭方法,使用Shutdown正常关闭,以及使用ShutdownNow强行关闭。在进行强行关闭时,shutdownNow首先关闭当前正在执行的任务。然后返回所有尚未启动的任务清单 。
返回未启动任务清单这句没明白返回的方式,于是去查看了一下源码
/**
* Attempts to stop all ...
分类:
编程语言 时间:
2014-09-01 01:41:33
阅读次数:
335
Combinations
Total Accepted: 18327 Total
Submissions: 60479My Submissions
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4...
分类:
其他好文 时间:
2014-09-01 01:40:32
阅读次数:
204
主要内容:python相关网站资料介绍python在线手册python相关实例教程1、python相关网站资料介绍 官网:http://www.python.org/ Python in wiki:http://wiki.python.org/moin/FrontPage 2、python在线手册 ...
分类:
编程语言 时间:
2014-09-01 00:19:02
阅读次数:
234
---恢复内容开始---centos6.5 自带python2.6,因工作需要,另装python2.7,参考网上资料,整理如下1.sudo yum install gcc gcc-c++2.wget https://www.python.org/ftp/python/2.7.8/Python-2.7...
分类:
编程语言 时间:
2014-09-01 00:13:52
阅读次数:
219
1)Eclipse+Pydev搭建开发环境
从官网下载windows下的安装包python-2.7.3.msi并安装,完成python集成开发环境配置
ref: Eclipse+Pydev
搭建开发环境
http://blog.csdn.net/pipisorry/article/details/38964249
2)在 Eclipse 中使用Python...
分类:
编程语言 时间:
2014-08-31 23:01:22
阅读次数:
792