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])

猜你喜欢

转载自www.cnblogs.com/waox/p/12120509.html
今日推荐