python表示范围的方法: 使用range函数可以表示范围,例如:“range(0, 10)”表示从零到九 示例如下: for i in range(0, 10): print(i) 执行结果: 更多Python知识,请关注:Python自学网!!