python語法?
python中range循環(huán)的用法 for i in range()括號中能跟3種形式:
1、range(10),等于[0,1,2,3,4,5,6,7,8,9]
2、range(1,9),等于[1,2,3,4,5,6,7,8]
3、range(1,9,2),等于[1,3,5,7]
python語法?
python中range循環(huán)的用法 for i in range()括號中能跟3種形式:
1、range(10),等于[0,1,2,3,4,5,6,7,8,9]
2、range(1,9),等于[1,2,3,4,5,6,7,8]
3、range(1,9,2),等于[1,3,5,7]