极客战记-巫师之门

2025-06-23 01:49:28

如果你卡在这里了,那么看看这个攻略吧

极客战记-巫师之门

准备工作

1、选择英雄和编程语言

极客战记-巫师之门

2、选择装备

极客战记-巫师之门

3、写中文注释

极客战记-巫师之门

python

1、写代码#Moveto雉搽妤粲Laszloandgethissecretnumber.hero.moveXY(30,13)las=hero.findNearestFriend().getSecret()#向Laszlo的数字中加7就能得到Erzsebet的号码#MovetoErzsebetandsayhermagicnumber.erz=las+7hero.moveXY(17,26)hero.say(erz)#将Erzsebet的数字除以4得到Simoyi的数字。#GotoSimonyiandtellhimhisnumber.sim=erz/4hero.moveXY(30,39)hero.say(sim)#将Simonyi的数字乘以Laszlo的数字得到Agata的数字。#GotoAgataandtellherhernumber.aga=sim*lashero.moveXY(43,27)hero.say(aga)

极客战记-巫师之门

2、运行

极客战记-巫师之门

javascript

1、写代码// Move to Laszlo and get his secret number.hero.moveXY(30, 13);var las = hero.findNearestFriend().getSecret();// 向 Laszlo 的数字中加7就能得到 Erzsebet的号码// Move to Erzsebet and say her magic number.var erz = las + 7;hero.moveXY(17, 26);hero.say(erz);// 将 Erzsebet 的数字除以 4 得到 Simoyi 的数字。// Go to Simonyi and tell him his number.var sim=erz/4;hero.moveXY(30, 39);hero.say(sim);// 将 Simonyi 的数字乘以 Laszlo 的数字得到 Agata 的数字。// Go to Agata and tell her her number.var aga=sim*las;hero.moveXY(43, 27);hero.say(aga);

极客战记-巫师之门

2、运行

极客战记-巫师之门

coffeescript

1、写代码#MovetoLaszloandgethissecretnumber.hero.moveXY(30,13)las=hero.findNearestFriend().getSecret()#向Laszlo的数字中加7就能得到Erzsebet的号码#MovetoErzsebetandsayhermagicnumber.erz=las+7hero.moveXY(17,26)hero.say(erz)#将Erzsebet的数字除以4得到Simoyi的数字。#GotoSimonyiandtellhimhisnumber.sim=erz/4hero.moveXY(30,39)hero.say(sim)#将Simonyi的数字乘以Laszlo的数字得到Agata的数字。#GotoAgataandtellherhernumber.aga=sim*lashero.moveXY(43,27)hero.say(aga)

极客战记-巫师之门

2、运行

极客战记-巫师之门

lua

1、写代码-- Move to Laszlo and get his secret number.hero:moveXY(30, 13)local las = hero:findNearestFriend():getSecret()-- 向 Laszlo 的数字中加7就能得到 Erzsebet的号码-- Move to Erzsebet and say her magic number.local erz = las + 7hero:moveXY(17, 26)hero:say(erz)-- 将 Erzsebet 的数字除以 4 得到 Simoyi 的数字。-- Go to Simonyi and tell him his number.local sim=erz/4hero:moveXY(30, 39)hero:say(sim)-- 将 Simonyi 的数字乘以 Laszlo 的数字得到 Agata 的数字。-- Go to Agata and tell her her number.local aga=sim*lashero:moveXY(43, 27)hero:say(aga)

极客战记-巫师之门

2、运行

极客战记-巫师之门
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢