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)