Python,用无限循环和break求累计积

2025-04-01 01:09:32
推荐回答(2个)
回答1:

result = 1
i = 1
while True:
  i+=1
  result*=i
  if i == 999:
    break
print "The last number is %s and product is %s" % (i,result)

回答2:

打开的系统属性的窗口,点击左上角的“控制面板”窗口。。要快速打开win10系统