python 程序控制結構 單元做業

1.編寫程序,用戶從鍵盤輸入小於1000的正整數,對其進行因數分解並輸出分解的結果,例如10=2x5,60=2x2x3x5。web x = int(input("請輸入小於1000的整數:")) l=[] n=x if x>1000 or x==1000: print("輸入錯誤!") else: for i in range(2,x): while True:
相關文章
相關標籤/搜索