• 2022-06-08
    下面代码的输出结果是(
    )
    s =["seashell","gold","pink","brown","purple","tomato"]
    print(s[1:4:2])
    A: ['gold',
    'pink', 'brown']
    B: ['gold',
    'pink']
    C: ['gold',
    'pink', 'brown', 'purple', 'tomato']
    D: ['gold',
    'brown']
  • 举一反三