标签: python range
thumbnail

python range的用法有哪些

Python中的range()函数用于生成一个整数序列,常用于循环中的计数器。 range()函数有三种用法: range(stop):生成从0到stop-1的整数序列,不包括stop。 rang……