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)
相关推荐
测试老哥25 分钟前
软件测试:测试用例的设计
自动化测试·软件测试·python·功能测试·测试工具·职场和发展·测试用例
koo3641 小时前
pytorch环境配置
人工智能·pytorch·python
程序员杰哥4 小时前
Python自动化测试之线上流量回放:录制、打标、压测与平台选择
自动化测试·软件测试·python·测试工具·职场和发展·测试用例·压力测试
吴佳浩4 小时前
LangChain v1 重大更新讲解⚠⚠⚠
python·langchain·agent
顾安r7 小时前
11.20 开源APP
服务器·前端·javascript·python·css3
萧鼎7 小时前
Python PyTesseract OCR :从基础到项目实战
开发语言·python·ocr
没有bug.的程序员9 小时前
Java 字节码:看懂 JVM 的“机器语言“
java·jvm·python·spring·微服务
下午见。10 小时前
Python基础入门:用Anaconda搭建环境的启蒙之旅
python
我叫汪枫11 小时前
Python 办公自动化入门:玩转 Excel 与 Word
python·word·excel
E_ICEBLUE11 小时前
三步完成 Markdown 到 Word/PDF 的转换:Python 教程
python·pdf·word·markdown·格式转换