给出如下代码:sum = 0for i in range(1,11):sum += iprint(sum)以下选项中描述 正确 的是:()
A. 循环内语句块执行了11次
B. sum += i可以写为sum=sum+i
C. 如果print(sum)语句完全左对齐,输出结果不变
D. 输出的最后一个数字是50
下面代码的输出结果是for num in range(2,10):if num > 1:for i in range(2,num):if (num % i) == 0:breakelse:print(num, end=",")
A. 4,6,8,9
B. 2,4,6,8,10
C. 2,4,6,8
D. 3,5,5,5,7,7,7,7,7,9,
下面代码的输出结果是()。a = 2.0b = 1.0s = 0for n in range(1,4):s += a / bt = aa = a + bb = tprint(round(s,2))
A. 5.17
B. 8.39
C. 3.5
D. 6.77