代码战争之穿越
Don’t insult this tribe of peaceful ogres.
while True:
item = hero.findNearestItem()
if item:
# If item.type IS NOT EQUAL TO “gem”
if item.type != “gem”:
# 然后跟隨你的寵物。
hero.moveXY(pet.pos.x, pet.pos.y)
# 否則:
else:
總結
- 上一篇: c语言字符串删掉小写字母
- 下一篇: 【基础练习】codevs1506 传话题