• 2022-06-08
    下面代码的输出结果是( )‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬ ‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬ ‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬。s =["seashell","gold","pink","brown","purple","tomato"]print(s[1:4:2])
    A: ['gold', 'pink']‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬
    B: ['gold', 'brown']
    C: ['gold', 'pink', 'brown', 'purple', 'tomato']
    D: ['gold', 'pink', 'brown']
  • B

    举一反三

    内容

    • 0

      下面代码的输出结果是‪‪‪‪‪‫‪‪‪‪‪‪‫‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪s=["seashell","gold","pink","brown","purple","tomato"]print(s[4:]) A: ['gold', 'pink', 'brown', 'purple', 'tomato'] B: ['purple'] C: ['purple', 'tomato'] D: ['seashell', 'gold', 'pink', 'brown']

    • 1

      下面代码的输出<br/>结果是<br/>s<br/>=&#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: ['gold', 'pink', 'brown', 'purple', 'tomato']

    • 2

      序列s =&#91;"seashell","gold","pink","brown","purple","tomato"&#93;,则print(s&#91;1:4:2&#93;)结果为 A: ["gold","pink","brown","purple","tomato"] B: ["gold","pink"] C: ["gold","brown"] D: ["gold","pink","brown"]

    • 3

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

    • 4

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