网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
假设re模块已成功导入,并且有pattern = re.compile('^'+'.'.join([r'd{1,3}' for i in range(4)]) + '$'),那么表达式pattern.match('192.168.1.103')的值为None
参考答案和解析
'a bb'
更多 “假设re模块已成功导入,并且有pattern = re.compile('^'+'.'.join([r'd{1,3}' for i in range(4)]) + '$'),那么表达式pattern.match('192.168.1.103')的值为None” 相关考题
考题
假设re模块已成功导入,并且有pattern=re.compile(’^’+’/.’.join([r’/d{1,3}’foriinrange(4)])+’$’),那么表达式pattern.match(’192.168.1.103’)的值为None。
考题
已知seq为长度大于10的列表,并且已导入random模块,那么[random.choice(seq)for i in range(10)]和random.sample(seq,10)等价。
考题
填空题已知字典x={i:str(i+3) for i in range(3)},那么表达式''.join([item[1] for item in x.items( )]) 的值为()。
考题
判断题假设re模块已成功导入,并且有pattern=re.compile(’^’+’/.’.join([r’/d{1,3}’foriinrange(4)])+’$’),那么表达式pattern.match(’192.168.1.103’)的值为None。A
对B
错
考题
填空题假设正则表达式模块re已导入,那么表达式re.sub(’/d+’,’1’,’a12345bbbb67c890d0e’)的值为()。
热门标签
最新试卷