Use:
num = 2.999999996int(round(num,1))
Get 3, don't use int(num)
3
int(num)
For example, use python to calculate:
0.15 / 0.05
The program will tell you: 2.9999999999996, then add int to get 2, speechless
2.9999999999996
int
2
Python My start is quite low-k
Python描述 LeetCode 72. 編輯距離 大家好
文章目錄1、直方圖mask操作:shape學習圖像基本運算:
Catalog Preface 1.loc=‘String
很多朋友問我學Python可不可以掙錢?答案是”當然可以!“
數據類型數據類型概念:數字類型:整數型int浮點型float