2018年11月14日

Python ghost.py 0.2版简单实例

摘要: from ghost import Ghost ghost = Ghost() with ghost.start() as session: page, extra_resources = session.open("http://www.baidu.com") if page.http_status == 200 and 'accountName' in page.content:... 阅读全文

posted @ 2018-11-14 20:25 缺陷催生进化,完美预示终结 阅读(800) 评论(0) 推荐(0) 编辑

Python 自定义二叉树结构

摘要: class BinaryTree: def __init__(self,value): self._left=None self._right=None self._data=value def insertLeftChild(self,value): #创建左子树 if self._left: ... 阅读全文

posted @ 2018-11-14 15:54 缺陷催生进化,完美预示终结 阅读(493) 评论(0) 推荐(0) 编辑

Python 自定义队列 数据结构

摘要: 1 class myQueue: #构造函数,默认队列大小10 2 def __init__(self,size=10): 3 self._content=[] 4 self._size=size 5 self._current=0 6 7 def setSize(self,size): 8 ... 阅读全文

posted @ 2018-11-14 15:38 缺陷催生进化,完美预示终结 阅读(773) 评论(0) 推荐(0) 编辑

Python3中正则模块re.compile、re.match及re.search

摘要: 本文实例讲述了Python3中正则模块re.compile、re.match及re.search函数用法。分享给大家供大家参考,具体如下: re模块 re.compile、re.match、 re.search re 模块官方说明文档 正则匹配的时候,第一个字符是 r,表示 raw string 原 阅读全文

posted @ 2018-11-14 08:58 缺陷催生进化,完美预示终结 阅读(840) 评论(0) 推荐(1) 编辑

导航