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)
相关推荐
刘一哥GIS2 分钟前
Windows环境搭建:PostGreSQL+PostGIS安装教程
数据库·python·arcgis·postgresql·postgis
西柚小萌新8 分钟前
【深入浅出PyTorch】--4.PyTorch基础实战
人工智能·pytorch·python
用户83562907805111 分钟前
掌控PDF页面:使用Python轻松实现添加与删除
后端·python
用户3721574261351 小时前
Python 实现 Excel 文件加密与保护
python
Derrick__11 小时前
Python访问数据库——使用SQLite
数据库·python·sqlite
总有刁民想爱朕ha1 小时前
AI大模型学习(17)python-flask AI大模型和图片处理工具的从一张图到多平台适配的简单方法
人工智能·python·学习·电商图片处理
小虎鲸001 小时前
PyTorch的安装与使用
人工智能·pytorch·python·深度学习
加油吧zkf2 小时前
Python入门:从零开始的完整学习指南
开发语言·前端·python
杰瑞学AI2 小时前
我的全栈学习之旅:FastAPI (持续更新!!!)
后端·python·websocket·学习·http·restful·fastapi
用户3721574261352 小时前
Python 高效实现 Excel 与 CSV 互转:用自动化提升效率
python