计算概论C数字统计1 2 3 4 5 6 7 8 x, y = input().split() x = int(x) y = int(y) t = 0 for k in range(x, y + 1): m = str(k) t += m.count("2") print(t)