python(for循環,while循環及字符串的使用)

for循環 for i in range(10):python 求階乘web #輸出 a = int(input('請輸入一個值:')) #階乘控制單位 total = 1 #求階乘 for i in range(1,a+1,1): ##起始值爲1,終止符爲a+1,間隔爲1求階乘 total *= i print(total) 練習求1,2,3,4四個數字能夠組成多少個不一樣的且不重複的三
相關文章
相關標籤/搜索