count = 0
for each in range(1,256):
a = t = each*each
i = 0
while t != 0:
m = t%10
t //= 10
i +=1
# print(m)
x = 1
f = 0
while i > 0:
f +=m*x
x *=10
i -=1
# print(f)
if f == a:
count +=1
print(f'{count}:{each},{a}') 转换字符进行对比
for i in range(1,256)::
m,n= '',''
m = str(i*i)
for j in range(len(m)):
n +=m
# print(m,n)
if n == m:
print(m) 1 学习一下下
页:
1
[2]