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

题目详情

单选题 What will be the output of the following Python code? a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)

A. 4

B. 10

C. [1,3,6,10]

D. [1,3,5,7]

Python程序设计(双语)课程封面

学科:Python程序设计(双语)

时间:2025-03-24 07:12:49

Copyright © 2022 津ICP备2021001502号