自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (1)
  • 收藏
  • 关注

原创 正则--re.search

#!/usr/bin/env python3.4#coding:utf-8import repattern = "text"text = "Dose this text match the pattern?"match = re.search(pattern, text)s = match.start()e = match.end()print("Found '%s'\nin '%

2014-12-15 20:29:48 354

原创 string.Template--字符串模板

使用模板进行操作>>> import string>>> values = {'var':'foo'}>>> t = string.Template("""... Variable : $var... Escape : $$... Variable in text: ${var}iable... """)>>> print('TEMPLATE:',

2014-11-29 15:25:59 481

原创 str.maketrans()/str.translate()--创建转换表,将一组字符转换为另一组字符

>>> s'The quick brown fox jumped over the lazy dog.'>>> leet = s.maketrans('abegiloprstz', '463611092572')>>> print(s.translate(leet))Th3 qu1ck 620wn f0x jum93d 0v32 7h3 142y d06.>>>

2014-11-29 15:17:13 637

原创 string.capwords()--将字符串中所有单词的首字母大写

>>> import string>>> s = 'The quick brown fox jumped over the lazy dog.'>>> print(s)The quick brown fox jumped over the lazy dog.>>> print(string.capwords(s))The Quick Brown Fox Jumped Over The L

2014-11-29 15:06:06 943

原创 python3获取天气信息

通过对http://www.webxml.com.cn/WebServices/WeatherWebService.asmx  的调用,获取天气信息

2014-08-30 16:44:38 1264

原创 gvim插件vjde

vjde是可以将vim变为java IDE的一个插件,

2014-08-30 11:52:41 1275

Selenium2.0之WebDriver学习总结

Selenium2.0之WebDriver学习总结

2014-08-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除