mylist =[1, 2, 5, 6]
ans = 0;c = 0
for i in range(1,4):
for x in mylist:
if x % i == 0:
ans += x
c += 1
print(ans,c)
执行后输出的结果是( )
微信扫码预览、分享更方便