python float mul not returning correct value

前端 未结 0 745
闹比i
闹比i 2021-01-21 19:51
[0.01 * n + 0.01 for n in range(100)]

I want the value like:

[0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07...]

But returns:<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题