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)
相关推荐
萧鼎1 小时前
深度探索 Py2neo:用 Python 玩转图数据库 Neo4j
数据库·python·neo4j
华子w9089258591 小时前
基于 Python Django 和 Spark 的电力能耗数据分析系统设计与实现7000字论文实现
python·spark·django
Rockson2 小时前
使用Ruby接入实时行情API教程
javascript·python
Tipriest_3 小时前
Python关键字梳理
python·关键字·keyword
im_AMBER4 小时前
学习日志05 python
python·学习
大虫小呓4 小时前
Python 处理 Excel 数据 pandas 和 openpyxl 哪家强?
python·pandas
哪 吒4 小时前
2025B卷 - 华为OD机试七日集训第5期 - 按算法分类,由易到难,循序渐进,玩转OD(Python/JS/C/C++)
python·算法·华为od·华为od机试·2025b卷
摸爬滚打李上进5 小时前
重生学AI第十六集:线性层nn.Linear
人工智能·pytorch·python·神经网络·机器学习
凛铄linshuo6 小时前
爬虫简单实操2——以贴吧为例爬取“某吧”前10页的网页代码
爬虫·python·学习
牛客企业服务7 小时前
2025年AI面试推荐榜单,数字化招聘转型优选
人工智能·python·算法·面试·职场和发展·金融·求职招聘