当前位置: redice's Blog > TAG标签 > python

日期:11-07-16 |  分类:Python |  标签:pythonrandom |  0 Comments

原文地址: http://edu.codepub.com/2010/1025/26632.php 随机整数: import random random.randint(0,99) 21 随机选取0到100间的偶数: import random random.randrange(0, 101, 2) 42 随机浮点数: import random random.random() 0.85415370477785668 ran

阅读剩余部分...

日期:11-06-08 |  分类:Webscraping |  标签:python验证码识别 |  1 Comments

验证码识别,一直是我想实现的。今天终于实现了一个简单的。 // 转载请注明出处 鲲鹏数据 http://www.site-digger.com 陕西移动网厅: http://www.sn.10086.cn/ 验证码生成链接: https://sn.ac.10086.cn/SSO/servlet/CreateImage 验证码示例: 该验证码较为

阅读剩余部分...

日期:11-04-25 |  分类:Python |  标签:python生成器yieldenumerate |  0 Comments

PEP 279 -- The enumerate() built-in function( http://www.python.org/dev/peps/pep-0279/ )给出了enumerate()的源码如下: def enumerate(collection): 'Generates an indexed series: (0,coll[0]), (1,coll[1]) ...' i = 0 it = iter(collection) wh

阅读剩余部分...

redice's Blog  is powered by DedeCms |  Theme by Monkeii.Lee |  网站地图 |  本服务器由西安鲲之鹏网络信息技术有限公司友情提供

返回顶部