• 2022-06-08
    下面代码的输出结果是( )。‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‪‫s =["seashell","gold","pink","brown","purple","tomato"]print(len(s),min(s),max(s))
    A: 5 pink brown
    B: 6 brown tomato
    C: 5 purple tomato
    D: 6 seashell gold
  • B

    内容

    • 0

      下面代码的输出结果是‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬s=[seashell,gold,pink,brown,purple,tomato] print(len(s),min(s),max(s)) A: 6 seashell gold B: 5 purple tomato C: 5 pink brown D: 6 brown tomato

    • 1

      序列s =["seashell","gold","pink","brown","purple","tomato"],则print(len(s),min(s),max(s))结果为() A: 6 seashell gold B: 5 pink brown C: 6 brown tomato D: 5 purple tomato

    • 2

      下面代码的输出结果是()。 s<br/>=&#91;"seashell","gold","pink","brown","purple","tomato"&#93; print(len(),min(),max()) A: 6<br/>seashell gold B: 5<br/>purple tomato C: 5<br/>pink brown D: 6<br/>brown tomato

    • 3

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

    • 4

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