题海让大学四年没有难题
白天模式登陆

题目详情

单选题 # 阅读程序,选择结果 fruit=["apple","orange","grapes","banana","cherry"] mylist=list() for item in fruit: if item=="banana": break mylist.append(item) print(mylist)

A. ["apple","orange","grapes","banana","cherry"]

B. ["apple","orange","grapes","banana"]

C. ["banana","cherry"]

D. ['apple', 'orange', 'grapes']

Python程序设计课程封面

学科:Python程序设计

时间:2024-01-14 15:03:12

Copyright © 2022 津ICP备2021001502号