int():將傳入之參數轉為整數,若參數為浮點數則將小數捨去(Truncate). ✶ 例如:建立convert.py 檔案,內容如下:. print(3.14, int(3.14)) print(3.9999, ...
確定! 回上一頁