Skip to main content
 首页 » 编程设计

Python:十进制数的范围函数

2025年05月04日14lexus

<分区>

Python 中是否有用于 float 的 range() 函数 例如

a=0.6 
 
if a in range(0,1): 
    a=3 

我该如何实现?