• <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>

    極客戰記-If的盛宴

    若是你卡在這里了,那么看看這個攻略吧

    籌辦工作

    1. 1

      選擇英雄和編程說話

    2. 2

      選擇裝備

    3. 3

      寫中文注釋

    python

    1. 1

      寫代碼

      # 在食人魔的營地中打敗它們!

      #輪回

      while True:

          #找仇敵

          enemy = hero.findNearestEnemy()

          #若是有仇敵

          if enemy:

              # 進犯仇敵

              hero.attack(enemy)

    2. 2

      運行

    javascript

    1. 1

      寫代碼

      // 在食人魔的營地中打敗它們!

      //輪回

      while(true) {

          //找仇敵

          var enemy = hero.findNearestEnemy();

          //若是有仇敵

          if (enemy)

          {

              // 進犯仇敵

              hero.attack(enemy);

          }

      }

    2. 2

      運行

    coffeescript

    1. 1

      寫代碼

      # 在食人魔的營地中打敗它們!

      #輪回

      while true        

          #找仇敵

          enemy = hero.findNearestEnemy()

          #若是有仇敵

          if enemy    

              # 進犯仇敵

              hero.attack(enemy)

    2. 2

      運行

    lua

    1. 1

      寫代碼

      -- 在食人魔的營地中打敗它們!

      --輪回

      while true do

          --找仇敵

          local enemy = hero:findNearestEnemy()

          --若是有仇敵

          if enemy then        

              -- 進犯仇敵

              hero:attack(enemy)

          end

      end

    2. 2

      運行

    • 發表于 2018-05-17 00:00
    • 閱讀 ( 762 )
    • 分類:其他類型

    你可能感興趣的文章

    相關問題

    0 條評論

    請先 登錄 后評論
    聯系我們:uytrv@hotmail.com 問答工具
  • <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>
    久久久久精品国产麻豆