#计算1000位只要运算5479次,效率高 w=1000#计算位数 n=200 i=10 m=-1 j=0#运算次数 h=1 while h<w: while i*i<n: if i*i<n: m=i i+=1 j+=1 i=m*10 n=n*100 h+=1 print(m,',',j)