已采纳回答 / strong33
100*x+10*y+z是整数形式的三位数 在xyz为字符串时才能用,号,编译出来是x y z 这是我的理解,可能有错- -。还有for z in range(0,10)应该改为for z in range(1,10) 要跟x一样,因为不可能是0y0的三位数 所以要从数字1~9,而中间的y是可以为0的
2018-10-14
已采纳回答 / 白鹿cn
==>a(x^2 + (b/a)x + (c/a)) = 0==>x^2+(b/a)x + (b/2a)^2 = (b/2a)^2 - (c/a)==>(x+(b/2a))^2 = (b^2 - 4ac)/4a^2就是一个简单配平方过程,一个正数的平方根有正负俩个
2018-10-14
已采纳回答 / 大白的弟弟小白
import mathimport turtledef square(t, length): """Draws a square with sides of the given length. Returns the Turtle to the starting position and location. """ for i in range(4): t.fd(length) t.lt(90)def polyline(t, n, length, ang...
2018-10-14
已采纳回答 / 丹枫秋意
你的运算结果是错的,这个相当于把1到100和100 比较了100 次,最后一次不通过所以最后x=100时跳出循环,执行sum+x=0+100=100,原因是你没有在循环中加入循环体,只有循环结束条件和循环变量,所以sum的值一直都是0
2018-10-10