range的用法和练习
# 帮助创建连续的数字,通过设置步长来指定不连续
# v = range(0,100,5)
# for item in v:
# print(item)
# for循环可以用break和continue
# for item in test:
# print(item)
# break
# for item in test:
# continue
# print(item)
#将文字 对应的索引打印出来:
# test = input(">>>")
# new = len(test)
# num = range(0,new)
# for item in num:
# print(item, test[item])
# test = input(">>>")
# for item in range(0,len(test)):
# print(item,test[item])
浙公网安备 33010602011771号