阅读下列代码,print输出什么?import re pattern = pile(r'd+') # 查找数字result1 = pattern.findall('runoob 123 google 456')result2 = pattern.findall('run88oob123google456', 0, 10) print(result1)print(result2)

A. ['12', '45']['88', '12']

B. ['123', '456']['88', '12']

C. ['1', '4']['8', '1']

D. '123', '456''88', '12'

参考答案与解析:

相关试题

文件 a.txt 的内容如下: [1, 2, 3, 4] 以下代码的执行结果是()。 f=open('a.txt', 'r') print(f.read()

文件 a.txt 的内容如下: [1, 2, 3, 4] 以下代码的执行结果是()。 f=open(a.txt, r) print(f.read()

  • 查看答案
  • 制定AMS推进方案的'SMART'黄金法则中“R'表示()。

    制定AMS推进方案的SMART黄金法则中“R表示()。A. 目标明确、个体化治疗B. 目标可衡量:抗菌药物使用强度DDDsC. 目标可接受:切合实际D. 目标可

  • 查看答案
  • 以下程序的输出结果是:s=''try:for i in range(1, 10, 2):s.append(i)except:print('error')print(s)

    以下程序的输出结果是:s=try:for i in range(1, 10, 2):s.append(i)except:print(error)print(s)

  • 查看答案
  • 语句:print('abcDEF'.islower( ))的输出结果是________________

    语句:print(abcDEF.islower( ))的输出结果是________________语句:print('abcDEF'.islower())的输出

  • 查看答案
  • 给变量赋值,A=rabbit,B='rabbit' ,C= 'carrot',C = B, A = C, D = B,print('A', 'D

    给变量赋值,A=rabbit,B=rabbit ,C= carrot,C = B, A = C, D = B,print(A, D ),执行得到的结果不会是()

  • 查看答案
  • 给变量赋值,A=rabbit,B='rabbit' ,C= 'carrot',C = B, A = C, D = B,print('A', 'D

    给变量赋值,A=rabbit,B=rabbit ,C= carrot,C = B, A = C, D = B,print(A, D ),执行得到的结果不会是()

  • 查看答案
  • 下面程序的输出结果是()。 def StudentInfo(country='中国',name): print('(},{)'.format(name,country)

    下面程序的输出结果是()。 def StudentInfo(country=中国,name): print((},{).format(name,country)

  • 查看答案
  • 在Python程序中,print('3'+4')输出的值为7。

    在Python程序中,print(3+4)输出的值为7。A. 对B. 错

  • 查看答案
  • 阅读以下代码,下列选[1]项描述正确的是 Row()( Text('1').height(50).width('25%').fontSize(16).backg

    阅读以下代码,下列选[1]项描述正确的是 Row()( Text(1).height(50).width(25%).fontSize(16).backg

  • 查看答案
  • (1) ____ ,if you're out of your comfort zone or if you' re wandering into somebody's hou

    (1) ____ ,if youre out of your comfort zone or if you re wandering into somebody

  • 查看答案