Python
第十八讲:正则表达式02
# -*- coding: utf-8 -*- # 正则表达式02 import re m = re.findall(“.”, “aa\nbbcc”) # . 是除了换行符之外所有的字符 # prin 阅读更多…
Python
第十七讲:正则表达式01
# -*- coding:utf-8 -*- # 正则表达式01 import re # 正则表达式包 m = re.findall(“abc”, “aaaaabcccabcc”) print(m) 阅读更多…
Python
第十二讲:二叉树的实现
# -*- coding:utf=8 -*- # 二叉树的实现 # 二叉树的前序遍历 class Node(object): def __init__(self, index): self.index 阅读更多…
Python
第十一讲:队列的实现
# -*- coding:utf-8 -*- # 队列的实现 class Queue(object): def __init__(self): self.dataList = [] def initQ 阅读更多…