两点水
This commit is contained in:
12
Code/Python14Code/com/twowater/test5.py
Normal file
12
Code/Python14Code/com/twowater/test5.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
import re
|
||||
|
||||
a = '347073565'
|
||||
|
||||
# 边界匹配符
|
||||
|
||||
findall = re.findall('\d{6}565$', a)
|
||||
|
||||
print(findall)
|
||||
Reference in New Issue
Block a user