网易极客战记-KITHGARD地牢--循环又循环 (需解锁)

# 在 while true 里的代码会永远重复!

while True:
    # 右走
    hero.moveRight()
    # 向上走
    hero.moveUp()
    
    # 左走
    hero.moveLeft()
    
    # 向下走
    hero.moveDown()
    

猜你喜欢

转载自blog.csdn.net/Along_168163/article/details/122249374