当前位置:首页 > python知识 > 正文内容

ICode—1级训练场(基础训练1)参考答案(python版)

亿万年的星光1年前 (2024-03-13)python知识6002

Dev.step(4)


2.

Dev.step(-4)
Dev.step(8)

3.

Dev.turnLeft()
Dev.step(4)


4.

Dev.step(3)
Dev.turnRight()
Dev.step(1)
Dev.step(-4)


5.

Dev.step(2)
Dev.step(-3)
Dev.step(1)
Dev.turnLeft()
Dev.step(3)
Dev.step(-7)


6.

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.

Spaceship.step(4)
Dev.step(4)


8.

Dev.step(2)
Spaceship.step(2)
Dev.step(3)


9.

Dev.step(1)
Spaceship.step(2)
Spaceship.turnLeft()
Spaceship.step(4)
Spaceship.turnRight()
Spaceship.step(2)
Spaceship.turnLeft()
Dev.turnLeft()
Dev.turnLeft()
Dev.step(2)


10.

Dev.step(3)
Spaceship.turnRight()
Spaceship.turnRight()
Spaceship.step(5)


11.

Dev.turnLeft()
Dev.turnLeft()
Dev.step(2)
Spaceship.step(6)
Spaceship.turnLeft()
Spaceship.step(5)
Spaceship.turnLeft()
Spaceship.step(4)


12.

Spaceship.step(5)
Spaceship.turnLeft()
Spaceship.turnLeft()
Spaceship.step(10)
Spaceship.turnLeft()
Spaceship.turnLeft()
Spaceship.step(5)
Spaceship.turnLeft()
Spaceship.step(5)
Spaceship.turnLeft()
Spaceship.turnLeft()
Spaceship.step(10)



13.

for i in range(3):
    Dev.turnRight()
    Dev.step(4)



14.

for i in range(4):
    Dev.step(5)
    Dev.turnLeft()


15.

for i in range(3):
    Dev.step(3)
    Dev.turnRight()
    Dev.step(1)
    Dev.turnLeft()


16.

for i in range(3):
    Dev.turnLeft()
    Dev.step(2)
    Dev.turnRight()
    Dev.step(2)


17.

Dev.step(1)
for i in range(3):
    Spaceship.step(3)
    Spaceship.turnRight()


18.

Dev.step(2)
for i in range(3):
    Spaceship.step(2)
    Spaceship.turnLeft()
    Dev.step(2)
    Dev.step(-2)
    Spaceship.turnRight()


19.

Spaceship.step()
Dev.step(1)
for i in range(3):
    Spaceship.turnRight()
    Spaceship.step(4)
Dev.step(1)
Dev.step(-1)


20.

Dev.turnLeft()
for i in range(3):
    Spaceship.step(2)
    Dev.step(4)
    Dev.step(-8)
    Dev.step(4)


扫描二维码推送至手机访问。

版权声明:本文由青少年编程知识记录发布,如需转载请注明出处。

分享给朋友:

相关文章

【python】常见内置函数及用法汇总

函数名释义说明示例abs()绝对值函数求一个数的绝对值all()any()bin()二进制函数将一个十进制的数转换成二进制bool布尔函数...

ICode—编程一小时(scratch版) 参考答案

ICode—编程一小时(scratch版) 参考答案

网址:ICode.org1.2.3.4.5.6.7.8.9.10....

ICode—1级训练场(基础训练1)参考答案(scratch版)

ICode—1级训练场(基础训练1)参考答案(scratch版)

1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20....

ICode—1级训练场(基础训练2)参考答案(python版)

ICode—1级训练场(基础训练2)参考答案(python版)

1.a = 4  Dev.step(a)2.a = 1  for i in range(4): &nbs...

ICode—编程一小时(python版) 参考答案

ICode—编程一小时(python版) 参考答案

1.Dev.step(4) Spaceship.step(2) Dev.turnRight() Dev.step(3)2.Dev.step(4)3.Dev.step(6)4.Dev.step(4...

 ICode—1级训练场(基础训练2)参考答案(scratch版)

ICode—1级训练场(基础训练2)参考答案(scratch版)

1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20....