网易极客战记-KITHGARD地牢--迷失在书库中 (需解锁)

# 循环多次重复一段代码。
# 一个代码块缩进4个空格。

# 代码块从冒号开始:
while True:
    # 移动列表需要缩进!
    # 添加4个空格到每个行的开头,同时为:
    #向右走
    hero.moveRight()
    #向上走
    hero.moveUp() # ∆ INDENT this line
    #向左走
    hero.moveLeft() # ∆ INDENT this line
    #向下走
    hero.moveDown() # ∆ INDENT this line

猜你喜欢

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