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)
相关推荐
belldeep2 小时前
python:reportlab 将多个图片合并成一个PDF文件
python·pdf·reportlab
FreakStudio4 小时前
全网最适合入门的面向对象编程教程:56 Python字符串与序列化-正则表达式和re模块应用
python·单片机·嵌入式·面向对象·电子diy
丶21364 小时前
【CUDA】【PyTorch】安装 PyTorch 与 CUDA 11.7 的详细步骤
人工智能·pytorch·python
_.Switch5 小时前
Python Web 应用中的 API 网关集成与优化
开发语言·前端·后端·python·架构·log4j
一个闪现必杀技5 小时前
Python入门--函数
开发语言·python·青少年编程·pycharm
小鹿( ﹡ˆoˆ﹡ )6 小时前
探索IP协议的神秘面纱:Python中的网络通信
python·tcp/ip·php
卷心菜小温6 小时前
【BUG】P-tuningv2微调ChatGLM2-6B时所踩的坑
python·深度学习·语言模型·nlp·bug
陈苏同学6 小时前
4. 将pycharm本地项目同步到(Linux)服务器上——深度学习·科研实践·从0到1
linux·服务器·ide·人工智能·python·深度学习·pycharm
唐家小妹6 小时前
介绍一款开源的 Modern GUI PySide6 / PyQt6的使用
python·pyqt
羊小猪~~7 小时前
深度学习项目----用LSTM模型预测股价(包含LSTM网络简介,代码数据均可下载)
pytorch·python·rnn·深度学习·机器学习·数据分析·lstm