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)
相关推荐
啊阿狸不会拉杆11 小时前
《机器学习导论》第 5 章-多元方法
人工智能·python·算法·机器学习·numpy·matplotlib·多元方法
wangsir.12 小时前
测试之自动化测试常用函数
python·测试
铁蛋AI编程实战12 小时前
MemoryLake 实战:构建超长对话 AI 助手的完整代码教程
人工智能·python·microsoft·机器学习
清水白石00812 小时前
《为什么说 deque 是 Python 滑动窗口的“隐藏神器”?深入解析双端队列的高效之道》
开发语言·python
kjkdd12 小时前
5. LangChain设计理念和发展历程
python·语言模型·langchain·ai编程
摘星编程12 小时前
CANN ops-nn 激活函数算子全解析:从ReLU到GELU的演进与实现
python
love530love12 小时前
【高阶编译】Windows 环境下强制编译 Flash Attention:绕过 CUDA 版本不匹配高阶指南
人工智能·windows·python·flash_attn·flash-attn·flash-attention·定制编译
DeniuHe12 小时前
Pytorch中的众数
人工智能·pytorch·python
新缸中之脑12 小时前
开发AI代理必备的8个Python 库
开发语言·人工智能·python
WKP941812 小时前
照片生成心形工具【免费】【下载即可使用】
python