Python入门,序言–门



His feet carried him through corridor after dark corridor, soft steps echoing in the stillness. He could feel something in these halls calling to him, drawing him near. He turned a corner and there it was, what he somehow knew he would find. A door, seemingly hewn from the surrounding stone. While it bore no handle, it had a series of inscrutable markings engraved in its surface.

H是脚在黑暗的走廊后抬着他穿过走廊,柔软的脚步在静ness中回荡。 他在这些大厅里感觉到某种声音在呼唤他,将他拉近了。 他转过弯,在那里,他以某种方式知道自己会找到什么。 一扇门,看似是从周围的石头凿出的。 虽然没有手柄,但其表面刻有一系列难以理解的标记。



"""
(dmsp rm rfc dmsprf nmucp) kglsq (rfpcc rgkcq lglcrccl)
((rcl rm rfc rfgpb nmucp) njsq mlc fslbpcb qgvrw mlc) bgtgbcb zw ruclrw qctcl
(rum rgkcq rfpcc rgkcq rfpcc rgkcq ruclrw rfpcc rgkcq rfpcc rgkcq rum fslbpcb rfgprw rfpcc rgkcq dmprw rfpcc) kglsq dgtc
rfc ufmjc lskzcp md rfc npmbsar md rfc yzmtc rfpcc gq rfc icw
"""


[
"----|---------------------------------------------------------------------0---",
"  _/                                                                         ",
"  / |    0                           0                     0                 ",
"  _|_/                                                                       ",
"    | |                                                                       ",
"-|-/|--|-----------------------------------------------------------0----------",
"----|------------------------------------------------------------------------",
"----|/-----------0------0-----------------------------------------------------",
"---/|----------------------------------------0------0-------------------------",
"    |                          0                                              ",
"    |                                                                        ",
]


"""
ro ncdm oyy mn, ahz ro dueho qax xem
ymnudrn pm ddbigwj, amc yiq'pe zoplkycghna oscbdsm
ncaqqahcc ar hmjhgec, cewenhdq lcgc tgd snwpt
sgeh wlsvdr ndc rhcdfa, ync aamg gn xnul wpt
"""


"""
8813191238677333954665809213349646122194
3015595667663245206677258662604239718836
4431428926159036858913586646934493387784
2415423905479477475303429332505714485112
4090836065842116455582237940320444861841
8887593350492294228220622241460000717294
4955847547957801429318355097534895447954
7342296922244600793814495300151499126757
3076802599544010948629349194265749217345
4001893903317176122546504003906815939962
8428796996691959920597351056958454461881
4732394077366853306860112237237386161021
7871126702127244170489561553519315838470
2693690437372649049215349703278652470600
3015221909596231574709960176130567639024
0092004721669881955529429225102279034207
1330193718198499866240480029222396978969
9281228432921674821577765850343057221329
2779929871766974307119561522080156771664
7095071241828310135078223629923028803912
5453455582923797217620833928427273736063
7822533797916494440084693015546738131130
2640275104782204063786790634519992766829
2989314882818234607337721281487409823167
5734588734584493380447926820353540224813
5824663370552369365250850730508000154790
81377112162403735240993
"""


"""
pv-shwsub-hbbs-wbwuvffgs-uh-sosb-vdph-or
-huibtc-sw--wwucjhhss--hhousvjhgsapc-b-i
ooas-fgr-b-gvhohqwsarsa-wsfhus-hsuogsjsv
ibc--chg-rwab-qigro-zhwszrt-vsjohwfuo--w
vsgsh-h-csgbrr-ow-baccg-wigbqqsgp-gggbcz
asc-uhjrwossc-shhvg--q-fawouko-orb-oh-zz
vg-bsrckfs-n-froctwkmfchbto-iwfhbcrvsk-t
hmodvoh--fswzrvrzh--ssfhgo--susjudfhwb-s
"""


Baldric stopped in front of the door to study it, its gleaming green inscriptions casting a soft light down the corridor. While the writing appeared to have some sort of five-part structure, it was wholly unintelligible. The carvings of a madman. Or perhaps it was scrambled by some sort of code…but if so, how to crack it?

鲍德瑞克在门前停下来研究它,其闪闪发光的绿色铭文在走廊上投射出柔和的灯光。 尽管该作品似乎具有五部分结构,但却是完全难以理解的。 疯子的雕刻。 还是它被某种代码打乱了……但如果是这样,如何破解呢?

Noticing footsteps, Baldric turned to see a faceless man in heavy red and black armor slowly walking towards him. The space around the man was gray, as if the color was being leeched away by his presence. The man stopped and extended his arm, and a massive wicked-looking axe materialized in his hand. The blade glowed a deep blood red and a horde of demonic forms sprung from the shadows, howling and blanketing the corridor as they swarmed forth.

鲍德瑞克注意到了脚步,转过身去,看到一个身穿红色和黑色重甲的不露面男人慢慢向他走来。 这个男人周围的空间是灰色的,仿佛是他在场的颜色正在渗出。 该名男子停下脚步,伸了伸胳膊,手中出现了一根看上去很邪恶的大斧头。 叶片发出深红色的血红色,阴影中涌出了一大批恶魔般的形态,它们蜂拥而至,笼罩着走廊。

In horror, Baldric spun back towards the door, thinking frantically. He felt something surge through his body, and time seemed to slow as ethereal threads sprang into being before him. Mentally, he wove the threads in complex patterns directed at the door and, miraculously, began to understand the engravings. He could feel mountains of calculations being performed by his weavings, the mysterious text’s encoding cracking under their computational weight.

惊恐的是,鲍德瑞克疯狂地回头朝门走去。 他感觉到自己身上有些东西在涌动,随着空灵线的出现,时间似乎在变慢。 从心理上讲,他编织了针对门的复杂图案的线,并奇迹般地开始理解版画。 他可以感觉到编织在进行大量的计算,而神秘文字的编码在其计算权重之下开裂。

After a couple of seconds that seemed an eternity, he read the final piece of the message and uttered a word. Only one, simple word. With that, the heavy stone door swung open and a blinding white light poured through. Feeling the demons nearly on top of him, Baldric leapt into the light, and was obliterated.

几秒钟似乎是永恒之后,他阅读了信息的最后一段并说了一个字。 只有一个,简单的单词。 这样,沉重的石头门打开了,令人眼花blind乱的白光直射而过。 鲍德瑞克感到恶魔几乎在他的头上,跳入了光明,was灭了。

翻译自: https://www.pybloggers.com/2017/10/intro-to-python-prologue-the-door/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值