三天的小白求助,为什么结果对的,提交失败
查看原帖
三天的小白求助,为什么结果对的,提交失败
1016911
hdtls楼主2023/8/12 17:00

a = int(input()) b = int(input()) s = [0,0,0,0,0,0,0,0,0,0] while a <= b: n = a a += 1 while n != 0: i = n % 10 s[i] += 1 n //= 10 print(s)

2023/8/12 17:00
加载中...