求1到10的阶乘 (1245678910) for 循环 b = 1 for i in range(1,11): b *= i print(b)

while 循环3 i = 1 b = 1 while i <= 10: b *= i i += 1 print(b)