[Python] round() 四捨五入…的小坑
處理數據遇到的小坑,紀錄一下~
之前用 python 處理小數點四捨五入,很慣性地就用 round 這個內建函數,但當我輸入以下數值、想要四捨五入到小數點後一位時,就發現不太妙:
These were the top 10 stories published by 程式乾貨 in 2020. You can also dive into monthly archives for 2020 by using the calendar at the top of this page.