极客战记-巫师之门

 时间:2026-02-14 13:53:07

1、选择英雄和编程语言

极客战记-巫师之门

2、选择装备

极客战记-巫师之门

3、写中文注释

极客战记-巫师之门

1、写代码

# Move to Laszlo and get his secret number.

hero.moveXY(30, 13)

las = hero.findNearestFriend().getSecret()

# 向 Laszlo 的数字中加7就能得到 Erzsebet的号码

# Move to Erzsebet and say her magic number.

erz = las + 7

hero.moveXY(17, 26)

hero.say(erz)

# 将 Erzsebet 的数字除以 4 得到 Simoyi 的数字。

# Go to Simonyi and tell him his number.

sim=erz/4

hero.moveXY(30, 39)

hero.say(sim)

# 将 Simonyi 的数字乘以 Laszlo 的数字得到 Agata 的数字。

# Go to Agata and tell her her number.

aga=sim*las

hero.moveXY(43, 27)

hero.say(aga)

极客战记-巫师之门

2、运行

极客战记-巫师之门

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、运行

极客战记-巫师之门

1、写代码

# Move to Laszlo and get his secret number.

hero.moveXY(30, 13)

las = hero.findNearestFriend().getSecret()

# 向 Laszlo 的数字中加7就能得到 Erzsebet的号码

# Move to Erzsebet and say her magic number.

erz = las + 7

hero.moveXY(17, 26)

hero.say(erz)

# 将 Erzsebet 的数字除以 4 得到 Simoyi 的数字。

# Go to Simonyi and tell him his number.

sim=erz/4

hero.moveXY(30, 39)

hero.say(sim)

# 将 Simonyi 的数字乘以 Laszlo 的数字得到 Agata 的数字。

# Go to Agata and tell her her number.

aga=sim*las

hero.moveXY(43, 27)

hero.say(aga)

极客战记-巫师之门

2、运行

极客战记-巫师之门

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 + 7

hero:moveXY(17, 26)

hero:say(erz)

-- 将 Erzsebet 的数字除以 4 得到 Simoyi 的数字。

-- Go to Simonyi and tell him his number.

local sim=erz/4

hero:moveXY(30, 39)

hero:say(sim)

-- 将 Simonyi 的数字乘以 Laszlo 的数字得到 Agata 的数字。

-- Go to Agata and tell her her number.

local aga=sim*las

hero:moveXY(43, 27)

hero:say(aga)

极客战记-巫师之门

2、运行

极客战记-巫师之门

  • 5V、12V双输出稳压电源
  • Windows server 2008操作系统如何启用远程协助
  • WinSCP修改linux上的文件?WinSCP修改文件?
  • 轻帆鼠标AiMouse软件内网上网代理设置使用教程
  • 设置vim tab为4空格
  • 热门搜索
    家庭文明公约手抄报 我爱文学手抄报图片 清明节手抄报图片简单 中国梦手抄报设计图 运动会的手抄报 关于迎新年的手抄报 三年级重阳节手抄报 我们的节日中秋节手抄报 讲普通话 写规范字手抄报 英语手抄报的英文