14 lines
148 B
Python
14 lines
148 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
import re
|
|
|
|
a = 'pythonpythonpython'
|
|
|
|
# 组
|
|
|
|
findall = re.findall('(python){3}', a)
|
|
print(findall)
|
|
|
|
|