Py学习  »  Bijou Trouvaille  »  全部回复
回复总数  1
8 年前
回复了 Bijou Trouvaille 创建的主题 » For循环范围步骤更改为float python[duplicate]

对于精品店的完整性,功能解决方案:

def frange(a,b,s):
  return [] if s > 0 and a > b or s < 0 and a < b or s==0 else [a]+frange(a+s,b,s)