import re |
s = rawinput(). lower()split() #input a stringfor iin range(len(s)): |
m = Stii |
m = resub(r\b(Laeioul[a - z]b;rlhay;m)m = re. 5ub (rb(?!qu)(['aeiou][^aeiouy][a - z]b, 2Vay ;m)m = re.sub(rbqu([o - z]Ab1quay;m)Stil = m |
pattern = re. compile (rworld')match = pattern search(helo world!) if match: |
print "“ join(s) |
print match. group( )输出 # world |
中级程序员
by: 小guo 发表于:2022-11-18 11:48:53 顶(5) | 踩(2) 回复
?
回复评论