我如何优化查找数字X的代码,该数字X与其数字之和等于n?找到一个数字X,其数字和等于N n = int(input()) for i in range(n//2, n): z = [int(x) for x in str(i)] zz = sum(z) ...2024-06-08 已阅读: n次