摘要:
1、正则表达式是什么 对字符串进行匹配,过滤、搜索、查找的一种方法 python正则对象 字符串 2、应用场景 3、常用匹配规则 实例 # coding:utf8 import re line = "Bananas are more yellow than apples" match_obj = r 阅读全文
摘要:
队列--存放对象的容器 #coding:utf-8 import queue import time q = queue.Queue() for i in range(10): q.put(i) while not q.empty(): print('从队列中取出的元素: %s' % q.get() 阅读全文