Python進階------Python函數

1.# 假如讓保留小數點後兩位------使用round函數 格式:round(這個數, 保留的位數 ) a = 3.1415926 print(a) result = round(a, 2) print(result) 輸出的結果爲: 2.Python之禪--------import this http://www.cnblogs.com/huangbiquan/p/7881913.html 3
相關文章
相關標籤/搜索