极客战记-巫师之门

 时间: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空格
  • 热门搜索
    上海昆虫博物馆 男生卷发发型 李易峰发型 古装发型 女婴发型 简单的近义词和反义词 弹力素怎么用 beef怎么读 脸上螨虫怎么去除 严格的近义词