• 2022-06-17
    下面代码的输出结果是 s=["seashell","gold","pink","brown","purple","tomato"] [br][/br]pint(s[1:4:2])
    A: ['gold' , 'pink' ,'brown',' purple',tomato' ]
    B: ['gold' , 'pink' ]
    C: ['gold' ,'brown']
    D: ['gold' ,'pink',brown' ]
  • C

    举一反三

    内容

    • 0

      下面代码的输出结果是‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‮‬<br/>s =&#91;"seashell","gold","pink","brown","purple","tomato"&#93;<br/>print(s&#91;4:&#93;)<br/>A<br/>&#91;'purple'&#93;<br/>B<br/>&#91;'purple', 'tomato'&#93;<br/>C<br/>&#91;'gold', 'pink', 'brown', 'purple', 'tomato'&#93;<br/>D<br/>&#91;'seashell', 'gold', 'pink', 'brown'&#93; A: ['purple'] B: ['purple', 'tomato'] C: ['gold', 'pink', 'brown', 'purple', 'tomato'] D: ['seashell', 'gold', 'pink', 'brown']

    • 1

      下面代码的输出结果是(<br/>)<br/>s =&#91;"seashell","gold","pink","brown","purple","tomato"&#93;<br/>print(s&#91;1:4:2&#93;) A: ['gold',<br/>'pink', 'brown'] B: ['gold',<br/>'pink'] C: ['gold',<br/>'pink', 'brown', 'purple', 'tomato'] D: ['gold',<br/>'brown']

    • 2

      下面代码的输出结果是<br/>s =&#91;"seashell","gold","pink","brown","purple","tomato"&#93;<br/>print(s&#91;4:&#93;) A: ['purple'] B: ['seashell', 'gold', 'pink', 'brown'] C: ['gold', 'pink', 'brown', 'purple', 'tomato'] D: ['purple', 'tomato']

    • 3

      下面程序的输出结果是()。 s=&#91;"seashell","gold","pink","brown","purple","tomato"&#93; print(s&#91;1:4:2&#93;) A: ["gold","brown“] B: ["gold","pink","brown"] C: ["gold","pink"] D: s=["seashell","pink","brown","purple","tomato"]

    • 4

      下面代码的输出<br/>结果是<br/>s<br/>=&#91;"seashell","gold","pink","brown","purple","tomato"&#93;<br/>print(s&#91;4:&#93;) A: ['purple', 'tomato'] B: ['purple'] C: ['seashell', 'gold', 'pink', 'brown'] D: ['gold', 'pink', 'brown', 'purple', 'tomato']