ICode国际青少年编程竞赛- Python-1级训练场-基本操作

ICode国际青少年编程竞赛- Python-1级训练场-基本操作

1、

python 复制代码
Dev.step(3)

2、

python 复制代码
Dev.step(1)

3、

python 复制代码
Dev.step(7)

4、

python 复制代码
Dev.step(-1)

5、

python 复制代码
Dev.step(-5)

6、

python 复制代码
Dev.step(3)
Dev.step(-8)

7、

python 复制代码
Dev.turnRight()
Dev.step(1)

8、

python 复制代码
Dev.turnLeft()
Dev.step(1)

9、

python 复制代码
Dev.step(4)
Dev.turnRight()
Dev.step(5)

10、

python 复制代码
Dev.step(5)
Dev.turnLeft()
Dev.step(7)

11、

python 复制代码
Dev.step(1)
Spaceship.step(1)

12、

python 复制代码
Spaceship.step(4)
Dev.step(4)

13、

python 复制代码
Dev.step(5)
Spaceship.step(5)

14、

python 复制代码
Spaceship.turnRight()
Spaceship.step(1)

15、

python 复制代码
Spaceship.turnLeft()
Spaceship.step(1)

16、

python 复制代码
Spaceship.step(5)
Spaceship.turnLeft()
Dev.step(1)
Spaceship.step(5)

17、

python 复制代码
Dev.step(1)
Spaceship.step(5)
Spaceship.turnRight()
Spaceship.step(4)

18、

python 复制代码
Spaceship.turnRight()
Spaceship.turnRight()
Spaceship.step(2)

19、

python 复制代码
Dev.step(3)
Spaceship.turnRight()
Spaceship.turnRight()
Spaceship.step(5)

20、

python 复制代码
Dev.step(-2)
Spaceship.step(4)
Dev.step(2)
相关推荐
2401_8321319516 分钟前
Python单元测试(unittest)实战指南
jvm·数据库·python
vx_BS813301 小时前
【直接可用源码免费送】计算机毕业设计精选项目03574基于Python的网上商城管理系统设计与实现:Java/PHP/Python/C#小程序、单片机、成品+文档源码支持定制
java·python·课程设计
gzxx2007sddx1 小时前
windows vnpy运行过程及问题记录
python·量化·vnpy
算法_小学生1 小时前
LeetCode 热题 100(分享最简单易懂的Python代码!)
python·算法·leetcode
230万光年的思念2 小时前
【无标题】
python
shengli7222 小时前
机器学习与人工智能
jvm·数据库·python
2301_765703142 小时前
Python迭代器(Iterator)揭秘:for循环背后的故事
jvm·数据库·python
追风少年ii2 小时前
多组学扩展---分子对接pyrosetta
python·数据分析·空间·单细胞
2301_821369613 小时前
使用Python进行图像识别:CNN卷积神经网络实战
jvm·数据库·python
m0_561359673 小时前
使用Kivy开发跨平台的移动应用
jvm·数据库·python