输出4位数

55 阅读1分钟

for index in range(1000,10000): g=index%10 s=int(index/10)%10 b=int(index/100) if ggg+sss+bbb==index: print(index)