两点水

This commit is contained in:
347073565@qq.com
2017-12-26 11:14:36 +08:00
parent c7c4d7a559
commit 1a74b345e5
15 changed files with 799 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import re
a = 'java*&39android##@@python'
# 数量词
findall = re.findall('[a-z]{4,7}', a)
print(findall)
# 贪婪与非贪婪
re_findall = re.findall('[a-z]{4,7}?', a)
print(re_findall)