下面代码的输出结果是 list1=[] for i in range(1,11): list1.append(i**2) print(list1)

admin2019-09-02  42

问题 下面代码的输出结果是
list1=[]
for i in range(1,11):
list1.append(i**2)
print(list1)

选项 A、[1,4,9,16,25,36,49,64,81,100]
B、[2,4,6,8,10,12,14,16,18,20]
C、错误
D、1,4,9,16,25,36,49,64,81,100

答案A

解析
转载请注明原文地址:https://kaotiyun.com/show/C36p777K
0

最新回复(0)