为什么{3}没有起作用?
来源:10-9 组

无糖巧克力
2018-08-17
import re
a = 'PythonPythonPythonPythonPython'
r = re.findall('(Python){3}', a)
print(r)
结果:['Python']
为什么{3}没有起作用?
写回答
1回答
-
匹配连续出现3个python的代码,如果匹配就显示一个Python,这有撒问题吗
022018-08-20
相似问题
为什么{3}没有起作用?
来源:10-9 组
无糖巧克力
2018-08-17
import re
a = 'PythonPythonPythonPythonPython'
r = re.findall('(Python){3}', a)
print(r)
结果:['Python']
为什么{3}没有起作用?
1回答
匹配连续出现3个python的代码,如果匹配就显示一个Python,这有撒问题吗
相似问题