蓝桥等考Python组别十级005

第一部分:选择题

1、Python L10 (15分)

运行下面程序,输出的结果是(    )。

s = 'mother'

if 'th' in s:

    print(s[0])

else:

    print(s[1])

  1. m
  2. o
  3. e
  4. h

正确答案:A

2、Python L10

你可能感兴趣的:(python,开发语言,数据结构,算法,青少年编程)