温馨提示×

# range函数

在python中使用range函数实现倒序输出的方法通过在range函数中定义一个“-1”,实现倒序输出,方法如下:>>> for d in range(5,0,-1):... print(d)543...

0