ICode国际青少年编程竞赛- Python-1级训练场-基础训练1

ICode国际青少年编程竞赛- Python-1级训练场-基础训练1

1、

python 复制代码
Dev.step(4)

2、

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

3、

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

4、

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

5、

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

6、

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)

7、

python 复制代码
Spaceship.step(4)
Dev.step(4)

8、

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

9、

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

10、

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

11、

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

12、

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

13、

python 复制代码
for i in range(3):
    Dev.turnRight()
    Dev.step(4)

14、

python 复制代码
for i in range(4):
    Dev.step(5)
    Dev.turnLeft()

15、

python 复制代码
for i in range(3):
    Dev.step(3)
    Dev.turnRight()
    Dev.step(1)
    Dev.turnLeft()

16、

python 复制代码
for i in range(3):
    Dev.turnLeft()
    Dev.step(2)
    Dev.turnRight()
    Dev.step(2)

17、

python 复制代码
Dev.step(1)
for i in range(3):
    Spaceship.step(3)
    Spaceship.turnRight()

18、

python 复制代码
Dev.step(2)
for i in range(3):
    Spaceship.step(2)
    Dev.step(2)
    Dev.step(-2)

19、

python 复制代码
Spaceship.step(1)
Dev.step(1)
for i in range(3):
    Spaceship.turnRight()
    Spaceship.step(4)
Dev.step(1)

20、

python 复制代码
Dev.turnLeft()
for i in range(3):
    Spaceship.step(2)
    Dev.step(4)
    Dev.step(-8)
    Dev.step(4)
相关推荐
qq_3363139317 分钟前
java基础-IO流(随机点名器)
java·开发语言·python
liu****18 分钟前
深度学习简介
人工智能·python·深度学习·python基础
无垠的广袤19 分钟前
【工业树莓派 CM0 NANO 单板计算机】基于舵机和人脸识别的智能门禁系统
linux·python·opencv·yolo·ai·树莓派
大学生毕业题目21 分钟前
毕业项目推荐:102-基于yolov8/yolov5/yolo11的行人车辆检测识别系统(Python+卷积神经网络)
人工智能·python·yolo·目标检测·cnn·pyqt·行人车辆检测
嫂子的姐夫25 分钟前
017-续集-贝壳登录(剩余三个参数)
爬虫·python·逆向
4***175429 分钟前
Python 小游戏实战:打造视觉精美的数独小游戏
开发语言·python·pygame
星浩AI31 分钟前
从0到1:用LlamaIndex工作流构建Text-to-SQL应用完整指南
人工智能·后端·python
我是小疯子661 小时前
VSCode远程Python开发:保姆级SSH教程
python
OliverZhao1 小时前
iPhoto:基于 Python + PySide6 的高性能 macOS 风格照片管理器
python