题库 软件开发 题目列表 下面字符串中匹配正则的有? mstr = r"red&...
多选题
下面字符串中匹配正则的有?
mstr = r"red hed ced ped"
regex = r"[^c|p]ed"
pattern = re.compile(regex)
print pattern.findall(mstr)


A.

red

B.

hed

C.

ced

D.

ped

题目信息
校招真题
-
正确率
0
评论
26
点击