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)
相关推荐
JH_vision22 分钟前
Python OpenCV与霍夫变换:检测符合特定斜率范围的直线
python·目标检测
Yima_Dangxian1 小时前
爬虫笔记20——票星球抢票脚本的实现
笔记·爬虫·python
张飞飞飞飞飞1 小时前
RKNN3588——利用推理YOLOv8推理图片
python
叫我DPT1 小时前
数据库开发:mysql基础一
python·mysql·adb·数据库开发
Daydreamer .1 小时前
模拟QQ聊天界面遇到的问题:关于PyQt5 GUI模块不允许在多线程中进行操作的解决办法
python·websocket·pyqt
营赢盈英1 小时前
怎样在Python中使用oobabooga的API密钥,通过端口5000获取模型列表的授权
python·ai·llm·openai
TechQuester1 小时前
解决GPT-4o耗电难题!DeepMind新算法训练效率提升13倍,能耗降低10倍!
java·c++·人工智能·python·算法·chatgpt
码农StayUp1 小时前
2024年06月CCF-GESP编程能力等级认证Python编程二级真题解析
python·gesp·cff·计算机等级协会
颹蕭蕭2 小时前
python singledispatch 根据传入参数的类型自动选择相应的实现
python·重载