Python技法:浮点数取整、格式化和NaN处理 2022 年 5 月 21 日 筆記 1. 取整的三种方法 1.1 强转int类型 这种方法会直接对浮点数的小数部分进行截断(无论是正还是负)。 print( … Continue Reading