ICode国际青少年编程竞赛- Python-2级训练场-列表入门

ICode国际青少年编程竞赛- Python-2级训练场-列表入门

1、

python 复制代码
Dev.step(3)

2、

python 复制代码
Flyer.step(1)
Dev.step(-2)

3、

python 复制代码
Flyer.step(1)
Spaceship.step(7)

4、

python 复制代码
Flyer.step(5)
Dev.turnRight()
Dev.step(5)
Dev.turnLeft()
Dev.step(3)
Dev.turnLeft()
Dev.step(7)
Dev.turnLeft()
Dev.step(2)

5、

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

6、

python 复制代码
Flyer[2].step(1)
Dev.step(3)

7、

python 复制代码
Flyer[3].step(1)
Flyer[4].step(1)
Dev.step(10)

8、

python 复制代码
Flyer[0].step(1)
Flyer[2].step(1)
Dev.step(4)

9、

python 复制代码
Flyer[0].step(1)
Flyer[1].step(2)
Dev.step(4)
Dev.turnLeft()
Dev.step(1)

10、

python 复制代码
Flyer[0].step(1)
Flyer[1].step(2)
Flyer[2].step(1)
Dev.step(1)
Dev.turnLeft()
Dev.step(3)
Dev.turnRight()
Dev.step(4)
Dev.turnRight()
Dev.step(3)
Dev.turnLeft()
Dev.step(1)

11、

python 复制代码
Flyer[0].step(4)
Flyer[2].step(3)
Dev.step(2)
Dev.turnLeft()
Dev.step(1)
Dev.turnRight()
Dev.step(6)
Dev.turnRight()
Dev.step(1)
Dev.turnLeft()
Dev.step(2)

12、

python 复制代码
Flyer[3].step(1)
Flyer[2].step(2)
Flyer[0].step(1)
Flyer[1].step(1)
Spaceship.step(4)

13、

python 复制代码
Flyer[0].step(2)
Flyer[1].step(2)
Spaceship.step()
Dev.step(3)
Dev.step(-6)
Dev.turnRight()
Dev.step(1)
Dev.step(-3)

14、

python 复制代码
Flyer[0].step(3)
Flyer[3].step(1)
Flyer[2].step(2)
Flyer[1].step(2)
Dev.step(3)
Dev.turnRight()
Dev.step(2)
Dev.turnLeft()
Dev.step(2)
Dev.turnRight()
Dev.step(1)

15、

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

16、

python 复制代码
Flyer[2].step(1)
Flyer[4].step(1)
Flyer[3].step(1)
Flyer[5].step(1)
Flyer[6].step(3)
Spaceship.step(4)
Spaceship.turnRight()
Spaceship.step(3)

17、

python 复制代码
Flyer[5].step(1)
Flyer[8].step(1)
Flyer[7].step(1)
Spaceship.step(4)
Spaceship.turnRight()
Spaceship.step(3)
Spaceship.turnRight()
Spaceship.turnRight()
Dev.turnRight()
Dev.step(1)
Spaceship.step(3)

18、

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

19、

python 复制代码
for i in range(3):
    Flyer[0].step(3)
    Flyer[1].step(3)
    Dev.step(6)
    Dev.turnRight()

20、

python 复制代码
for i in range(2):
    Flyer.step(4)
    Dev.step(4)
    Dev.turnRight()
Dev.step(4)
相关推荐
成功人chen某3 小时前
配置VScodePython环境Python was not found;
开发语言·python
2301_786964363 小时前
EXCEL Python 实现绘制柱状线型组合图和树状图(包含数据透视表)
python·microsoft·excel
skd89993 小时前
小蜗牛拨号助手用户使用手册
python
「QT(C++)开发工程师」3 小时前
STM32 | FreeRTOS 递归信号量
python·stm32·嵌入式硬件
史迪仔01124 小时前
[python] Python单例模式:__new__与线程安全解析
开发语言·python·单例模式
胡耀超4 小时前
18.自动化生成知识图谱的多维度质量评估方法论
人工智能·python·自动化·知识图谱·数据科学·逻辑学·质量评估
三块钱07944 小时前
【原创】基于视觉大模型gemma-3-4b实现短视频自动识别内容并生成解说文案
开发语言·python·音视频
神码小Z4 小时前
Ubuntu快速安装Python3.11及多版本管理
python
JOYUAGV4 小时前
Word压缩解决方案
python·word
mahuifa5 小时前
(9)python开发经验
python·开发经验