icode函数入门-5-15
# 找到地图中重复的部分,定义函数,根据需要完成函数的调用
def func():
Dev.step(3)
Dev.turnLeft()
Dev.step()
Dev.turnRight()
Dev.step(-3)
for i in range(5):
if i % 2 == 0:
Flyer[i].step()
func()
Dev.step(6)
func()
Dev.step(5)
Dev.turnLeft()
Dev.step(2)
func()
Dev.step(4)
Dev.turnLeft()
Dev.step(2)
func()
Flyer[0].step(6)
Dev.step(5)
func()