#coding=utf-8 #while 循环 if __name__ == '__main__': # Enter a code num = 1 sum = 1 while num <= 10: sum = sum * num num = num + 1 print(sum) 结果: 3628800
Python3.x while循环
最新推荐文章于 2022-02-19 20:30:18 发布
#coding=utf-8 #while 循环 if __name__ == '__main__': # Enter a code num = 1 sum = 1 while num <= 10: sum = sum * num num = num + 1 print(sum) 结果: 3628800