摘要: #!/usr/bin/env python3import re'''#常用功能介绍[Pp]ython 匹配 "Python" 或 "python"rub[ye] 匹配 "ruby" 或 "rube"[aeiou] 匹配中括号内的任意一个字母[0-9] 匹配任何数字。类似于 [0123456789][ 阅读全文
posted @ 2016-02-27 18:02 Rainbower 阅读(194) 评论(0) 推荐(0)
摘要: #!/usr/bin/env pythone3#通过冒泡排序的方式,把列表进行排序优化前count=0number = [10,5,3,20,7,50,35,21,2,9,1,45,15]total=len(number)for a in range(total): for i in range(l 阅读全文
posted @ 2016-02-27 18:01 Rainbower 阅读(220) 评论(0) 推荐(0)
摘要: #!/sur/bin/env pythnon3import time,datetime,sys##time moduleprint(time.clock()) #返回处理器时间,3.3开始已废弃print(time.process_time()) #返回处理器时间,3.3开始已废弃print(tim 阅读全文
posted @ 2016-02-27 18:00 Rainbower 阅读(261) 评论(0) 推荐(0)