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)
相关推荐
dhdjjsjs23 分钟前
Day35 PythonStudy
python
如竟没有火炬1 小时前
四数相加贰——哈希表
数据结构·python·算法·leetcode·散列表
背心2块钱包邮1 小时前
第9节——部分分式积分(Partial Fraction Decomposition)
人工智能·python·算法·机器学习·matplotlib
木盏1 小时前
三维高斯的分裂
开发语言·python
a程序小傲1 小时前
京东Java面试被问:ZGC的染色指针如何实现?内存屏障如何处理?
java·后端·python·面试
大连好光景2 小时前
批量匿名数据重识别(debug记录)
开发语言·python
暴风鱼划水2 小时前
算法题(Python)哈希表 | 2.两个数组的交集
python·算法·哈希表
清水白石0082 小时前
《深入 Celery:用 Python 构建高可用任务队列的实战指南》
开发语言·python
BoBoZz192 小时前
Hello 隐式建模
python·vtk·图形渲染·图形处理
副露のmagic2 小时前
更弱智的算法学习day 10
python·学习·算法