ICode国际青少年编程竞赛- Python-1级训练场-路线规划

ICode国际青少年编程竞赛- Python-1级训练场-路线规划

1、

python 复制代码
Dev.step(3)
Dev.turnLeft()
Dev.step(4)

2、

python 复制代码
Dev.step(3)
Dev.turnLeft()
Dev.step(3)
Dev.step(-6)

3、

python 复制代码
Dev.step(-2)
Dev.step(4)
Dev.turnLeft()
Dev.step(3)

4、

python 复制代码
Dev.step(2)
Spaceship.step(2)
Dev.step(3)

5、

python 复制代码
Dev.step(3)
Dev.turnLeft()
Dev.step(-1)
Dev.step(4)

6、

python 复制代码
Dev.step(4)
Dev.turnLeft()
Dev.step(2)
Dev.turnLeft()
Dev.step(2)
Dev.step(-4)

7、

python 复制代码
Dev.step(2)
Dev.turnRight()
Dev.step(3)
Dev.turnRight()
Dev.step(1)
Dev.step(-4)

8、

python 复制代码
Dev.step(2)
Dev.turnRight()
Dev.step(4)
Dev.step(-2)
Dev.turnLeft()
Dev.step(2)

9、

python 复制代码
Spaceship.step(3)
Spaceship.turnRight()
Spaceship.step(3)
Spaceship.turnLeft()
Spaceship.step(2)

10、

python 复制代码
Dev.step(1)
Spaceship.step(3)
Spaceship.turnRight()
Spaceship.step(3)
Spaceship.turnLeft()
Spaceship.step(3)

11、

python 复制代码
Spaceship.step(6)
Spaceship.turnRight()
Spaceship.step(5)
Spaceship.turnRight()
Spaceship.turnRight()
Spaceship.step(10)

12、

python 复制代码
Spaceship.step(1)
Dev.step(1)
Dev.turnLeft()
Dev.step(1)
Spaceship.step(2)
Dev.step(2)

13、

python 复制代码
Spaceship.step(1)
Spaceship.turnLeft()
Spaceship.step(4)
Spaceship.turnLeft()
Spaceship.step(2)
Dev.step(-3)
Spaceship.step(3)

14、

python 复制代码
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.turnRight()
Spaceship.step(4)
Spaceship.turnLeft()
Spaceship.step(4)

15、

python 复制代码
Spaceship.step(3)
Spaceship.turnLeft()
Spaceship.step(4)
Spaceship.turnRight()
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.turnRight()
Spaceship.step(5)

16、

python 复制代码
Dev.step(5)
Dev.step(-2)
Dev.turnLeft()
Dev.step(3)
Dev.turnLeft()
Dev.step(1)
Dev.step(-1)
Dev.turnRight()
Dev.step(3)

17、

python 复制代码
Dev.step(1)
Spaceship.step(2)
Spaceship.turnLeft()
Spaceship.step(4)
Spaceship.turnRight()
Spaceship.step(2)
Dev.step(-2)

18、

python 复制代码
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.step(6)
Spaceship.turnRight()
Spaceship.step(1)
Dev.turnRight()
Dev.step(1)
Spaceship.turnRight()
Spaceship.turnRight()
Spaceship.step(2)
Spaceship.turnLeft()
Spaceship.step(6)
Dev.step(1)

19、

python 复制代码
Dev.step(7)
Dev.turnLeft()
Dev.step(2)
Dev.step(-4)
Spaceship.step(3)
Spaceship.turnRight()
Spaceship.step(5)
Spaceship.turnLeft()
Spaceship.step(1)
Dev.step(-1)

20、

python 复制代码
Spaceship.step(2)
Spaceship.turnRight()
Spaceship.step(1)
Dev.step(1)

Spaceship.step(1)
Spaceship.turnLeft()
Spaceship.step(1)

Dev.step(4)
Dev.step(-1)


Dev.turnLeft()
Dev.step(-1)
Dev.step(4)
相关推荐
weixin_307779131 小时前
Azure上基于OpenAI GPT-4模型验证行政区域数据的设计方案
数据仓库·python·云计算·aws
玩电脑的辣条哥2 小时前
Python如何播放本地音乐并在web页面播放
开发语言·前端·python
多想和从前一样4 小时前
Django 创建表时 “__str__ ”方法的使用
后端·python·django
小喵要摸鱼6 小时前
【Pytorch 库】自定义数据集相关的类
pytorch·python
bdawn6 小时前
深度集成DeepSeek大模型:WebSocket流式聊天实现
python·websocket·openai·api·实时聊天·deepseek大模型·流式输出
Jackson@ML6 小时前
Python数据可视化简介
开发语言·python·数据可视化
mosquito_lover16 小时前
怎么把pyqt界面做的像web一样漂亮
前端·python·pyqt
mengyoufengyu7 小时前
算法12-贪心算法
python·算法·贪心算法
T_Y99437 小时前
pythonrsa加密与sha256加密
python
懒大王今天不写代码9 小时前
为什么Pytorch中实例化模型会直接调用forward方法?
人工智能·pytorch·python