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)
相关推荐
爱喝热水的呀哈喽1 小时前
Java collection实例电影尝试
java·windows·python
python_chai2 小时前
Python核心数据结构详解:元组、集合与字典
java·数据结构·python
程序员小续3 小时前
React 多个 HOC 嵌套太深,会带来哪些隐患?
java·前端·javascript·vue.js·python·react.js·webpack
九转成圣4 小时前
windows10安装配置并使用Miniconda3
python·conda
Aerkui4 小时前
Python高阶函数-eval深入解析
开发语言·python
胖哥真不错5 小时前
数据分享:汽车测评数据
python·机器学习·数据分享·汽车测评数据·car evaluation
明月看潮生5 小时前
青少年编程与数学 02-015 大学数学知识点 07课题、数值分析
机器学习·青少年编程·数值分析·编程与数学
u0103731066 小时前
Django异步执行任务django-background-tasks
后端·python·django
杰瑞学AI7 小时前
LeetCode详解之如何一步步优化到最佳解法:21. 合并两个有序链表
数据结构·python·算法·leetcode·链表·面试·职场和发展
攻城狮7号7 小时前
Python爬虫第5节-urllib的异常处理、链接解析及 Robots 协议分析
爬虫·python·python爬虫