数字a尾数是6,6移到最前面之后是这个数a的4倍

这个代码就是找一个数字,就不多说了
def fun(n):
x = n
t = 6
while int(x) > 0:
t *= 10
x = x/10
m = n * 10 +6
if t + n == m * 4:
print(m)


for i in range(1, 100000):
fun(i)
原文地址:https://www.cnblogs.com/lzh-luke/p/8027160.html