num = 0while num < c + 1:if num * num > c and g == 0:g = num - 1num += 1可以新定义一个变量(num)来充当你的j(或许你直接用j也可以)有用的话点一下采纳