代码实现 n = int(input()) num = 1 count = 1 person = [0,0,0,0] while count <= n: if num % 7 == 0 or '7' in str(num): person[(num-1)%4] += 1 else: count += 1 num += 1 for i in range(4): print(person[i])