Project
This commit is contained in:
3
24.5.py
3
24.5.py
@@ -1,6 +1,5 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
str1=open('24_5.txt').read()
|
str1=open('24_5.txt').read()
|
||||||
pattern = r"^(?!.*PP).*$"
|
result=re.split(r'^(?!.*PP).*',str1)
|
||||||
result=re.findall(r'.*^(P)(\1).*$',str1)
|
|
||||||
# print(max(list(map(len,result))))
|
# print(max(list(map(len,result))))
|
||||||
Reference in New Issue
Block a user