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)
相关推荐
数据智能老司机2 小时前
精通 Python 设计模式——创建型设计模式
python·设计模式·架构
数据智能老司机3 小时前
精通 Python 设计模式——SOLID 原则
python·设计模式·架构
c8i4 小时前
django中的FBV 和 CBV
python·django
c8i4 小时前
python中的闭包和装饰器
python
这里有鱼汤7 小时前
小白必看:QMT里的miniQMT入门教程
后端·python
TF男孩17 小时前
ARQ:一款低成本的消息队列,实现每秒万级吞吐
后端·python·消息队列
该用户已不存在1 天前
Mojo vs Python vs Rust: 2025年搞AI,该学哪个?
后端·python·rust
站大爷IP1 天前
Java调用Python的5种实用方案:从简单到进阶的全场景解析
python
用户8356290780511 天前
从手动编辑到代码生成:Python 助你高效创建 Word 文档
后端·python
c8i1 天前
python中类的基本结构、特殊属性于MRO理解
python