4-循环语句练习

while True:
    print("genben")

hero=["盖伦","亚索","刀妹","瑞文"]
for item in hero:
    print(item)

# range 生成数列  内置函数
for i in range(0,5):
    print(i)
for x in range(0,len(hero)):
    print(hero[x])
posted @ 2019-12-30 16:45  dzwox  阅读(148)  评论(0)    收藏  举报