CodeMonkey过关学习笔记系列:特技关卡 12-1 ~ 12-6 关 特技关卡 -
a = yes
if not a
turn left
step
CodeMonkey过关学习笔记系列:特技关卡 12-1 ~ 12-6 关 特技关卡 -
for b in bananas
if b.green()
goat.goto b
else if not b.rotten()
goto b
CodeMonkey过关学习笔记系列:特技关卡 12-1 ~ 12-6 关 特技关卡 -
for b in bananas
if not b.green()
goto b
CodeMonkey过关学习笔记系列:特技关卡 12-1 ~ 12-6 关 特技关卡 -
for b in bananas
if not b.green()
turtle.goto b
CodeMonkey过关学习笔记系列:特技关卡 12-1 ~ 12-6 关 特技关卡 -
for b in bananas
if not (b.green() or b.rotten())
goto b
CodeMonkey过关学习笔记系列:特技关卡 12-1 ~ 12-6 关 特技关卡 -
x =
times ->
b = bananas[ x-- ]
if not b.green() and not b.rotten()
goto b