連続的錬金術
深夜を過ぎたら決して脱水状態のスカウトに水をやらない
目標
生きるための水。
Use the continue statement to stop the current iteration of a loop, and start over at the beginning of the next one.
隣のものの最初に、ループの現在の繰返しを止めるために、継続的ステートメントを用いて、最初からやり直しなさい。
while True:
if not enemy:
continue
hero.say("I see an enemy!")
ヒント
マンチキンと オ-マン.ブルーストーンが蒸留した水まで競走.
Use the continue statement to avoid poison.
毒を避けるために、継続的ステートメントを用いなさい。
解答
a
while True:
enemy = hero.findNearestEnemy()
item = hero.findNearestItem()
if not enemy:
continue
if not item:
hero.say("テストの記述")
continue
if item.type=="poison":
continue
else:
hero.moveXY(44, 35)
hero.moveXY(34, 47)
a
- 最終更新:2017-05-19 02:26:08