題目說明:輸入一個正整數,請判斷該數是否為質數。若該數是質數,. 程式碼: i ... ")) #將輸入的變數Y2 轉為浮點數 dis = math.sqrt(math.pow(X1-X2,2) + math.pow(Y1 ...
確定! 回上一頁