sum=0;sum1=0
for i in range(0, 100):
if i%3==0 and i%5!=0:
sum+=i
if i%3==0 and i%5==0:
sum1+=i
print(sum)
print(sum1)
执行改程序段,输出的 sum1 值是 ( )
#micro:bit
from microbit import *
import random
while True:
display.scroll(str(random.randint(1,5)))
sleep(5000)
以下有关上述操作的描述正确的是 ( )
D={"a":[ 1,2,3,4], "b":[2,3,4,5], "c":[4,3,2,3], "d":[ 1, 1, 1,2]}
S=[0]*4
for i in range(4):
for j in D:
S[i]+=D[j][i]
print(S)
运行该程序,输出结果为 ( )