- 正则表达式简化版
- 2016-06-07 21:53:52 @
能否检查一下数据正确性?
测试数据 #5: WrongAnswer, time = 31 ms, mem = 2764 KiB, score = 0
import re
from io import *
reg=raw_input()
regular=re.compile(reg)
Match=None
while True:
try:
s=raw_input()
Match = regular.match(s)
if Match:
print("Regular Expression is Fun!")
else:
print("Boring String Matching...")
except:
break
0 条评论
目前还没有评论...