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