python-pcl函数_Python简介,第4章-函数

python-pcl函数



Running through the door, Baldric found himself in an enormous cavern, its ceiling lost in shadow. Great columns of black stone soared from the ground, and pools of lava bubbled throughout, lighting the cavern in a dark red. The heat was suffocating. Baldric saw Bill standing on a stone outcrop nearby, apparently scanning for something. Beyond him, in the center of the cavern, was large mahogany desk. Baldric could just make out the gold nameplate from this distance which read “HR Manager”.

R 1至门unning,佩饰发现自己在一个巨大的洞穴,其上限在阴影中。 巨大的黑色石头柱子从地上飞腾起来,熔岩的池水在整个过程中冒泡,将洞穴照成深红色。 高温令人窒息。 鲍德瑞克看见比尔站在附近的一块石头露头上,显然正在寻找东西。 在他的旁边,是洞穴的中央,是一张大红木桌子。 Baldric可以从这个距离上划出金色铭牌,上面写着“ HR Manager”。

With a disgruntled roar Bill brought his warhammer down on the ground, lava seeping through the resulting fissure. “I come all the way to see the HR Manager, and it’s not even here? Bah, the coward!”

比尔带着不满的吼声将战锤放倒在地,熔岩从裂缝中渗出。 “我一直去看人力资源经理,这不是吗? ah,胆小鬼!”

“Bill,” said Baldric, panting and heaving as he climbed the rocky slope, “The HR Manager isn’t supposed to be here right now.”

“比尔,”鲍德瑞克在攀登岩石坡道时气喘吁吁地说,“人力资源经理现在不应该在这里。”

“What? Not supposed to be here? What makes you say that?”

“什么? 不应该在这里吗? 是什么让你这么说?”

“It’s out devouring the dreams of the workforce right now. If you could see Magic, you would’ve seen its dream web covering the sky tonight. Since you apparently came here to do more than talk with it, I should tell you that I came here to take something from its desk.”

“现在正在吞噬员工的梦想。 如果您可以看到Magic,那么您将可以看到它的梦想之网今晚覆盖了天空。 既然您显然是来这里做的不只是与它交谈,我应该告诉您我来这里是为了从它的办公桌上取走一些东西。”

“So you’re a fellow rebel?” Bill laughed heartily and put his arm around Baldric’s shoulders. “I knew you were a good man. I should tell you, my name isn’t actually Bill. It’s Geofram, Geofram Hammerfell.”

“那么你是叛逆者吗?” 比尔发自内心地笑了起来,将胳膊搭在鲍德瑞克的肩膀上。 “我知道你是个好人。 我应该告诉你,我的名字实际上不是比尔。 是Geofram,Geofram Hammerfell。”

A glass-shattering shriek pierced the cavern, and a massive black body fell from the shadows above, its landing crushing boulders and splashing lava. It was an obsidian-scaled creature out of a nightmare with four heads, eight legs, and two wings like the sails of some warship of the damned. The creature extended its wings and let out another deafening screech (cue battle music).

玻璃破碎的尖叫声刺穿了洞穴,一个巨大的黑色尸体从上方的阴影中掉落,其着陆压碎了巨石和飞溅的熔岩。 这是一个噩梦般的黑曜石级生物,它有四个头,八个腿和两个翅膀,就像该死的某些军舰的帆一样。 该生物张开翅膀,发出另一种震耳欲聋的尖叫声(提示战斗音乐 )。

Geofram threw his head back and roared with laughter. “Quite a pair of lungs you’ve got there, oh fearsome HR Manager. Let’s see what they look like!” With that, he leapt off the stone outcrop and charged the beast, running between lava pools and letting out a fierce battlecry of his own.

Geofram朝后仰起头,大笑起来。 “您的肺部有很多,令人恐惧的人力资源经理。 让我们看看它们的外观!” 就这样,他跳下了石头露头,冲上了野兽,在熔岩池之间奔跑,发出了自己激烈的战斗声。

For a split second, Baldric thought the creature was actually turning to run! Then he saw a thick, scaly tail whipping around from the side, crashing through columns of rock, and cringed at the sickening crunch of it impacting with Geofram. Baldric watched in horror as the warrior sailed through the air and slammed into the side of the cavern. He didn’t get up.

一瞬间,鲍德瑞克以为这个生物实际上正在奔跑! 然后他看到一条粗而鳞状的尾巴从侧面打来打去,撞破了几列岩石,并为它的令人作呕的紧缩而畏缩,这影响了Geofram。 当战士在空中航行并猛撞到洞穴的一侧时,鲍德瑞克惊恐地看着。 他没有起床。

Completing its spin to face Baldric’s direction once again, the four faces of the HR Manager appeared to be smiling. One of those heads opened its mouth and, to Baldric’s surprise, started weaving threads of Magic. It was a simple but powerful weave of pure fire, likely some sort of fire-based projectile. Frantically, Baldric thought back to the Book of Magic.

人力资源经理的四张脸再次完成旋转以面对Baldric的方向,似乎在微笑。 其中一个头张开嘴,令鲍德瑞克惊讶的是,他们开始编织魔术的线。 这是一种简单而强大的纯火编织,可能是某种基于火的弹丸。 疯狂地,鲍德瑞克回想起《魔法书》。

“Taken in its entirety, the multiverse is in perfect magical balance. Water balances with Fire…”

综上所述,多元宇宙处于完美的魔幻平衡中。 水与火保持平衡……”

“Of course, Water cancels out Fire! So I just need to…” In the middle of thought, the weave completed and a bolt of molten flame shot through the air at Baldric’s head. In a panic he slipped and tumbled down the rocky slope, feeling the heat from the bolt of fire that passed through where his head had been a moment ago.

“当然,水可以消除火! 因此,我只需要……”在思考的中间,编织完成了,一束熔化的火焰从空气中喷向Baldric的头。 惊慌失措的他滑了下来,跌落在岩石山坡上,感到一瞬间的火光从头顶传过。

Getting up on his knees, he crouched behind some rocks. “There’s no time to think, I just have to react. But I don’t know this stuff by heart yet! Wait, maybe I can use a conditional statement to tell me what element to counter with.”

他跪下来,蹲在一些岩石后面。 “没有时间去思考,我只需要做出React。 但是我还不知道这些东西! 等等,也许我可以使用条件语句告诉我要应对的要素。”

attack = "Fire"

if attack == "Fire":
    print("Counter with Water!")
elif attack == "Water":
    print("Counter with Fire!")
else:
    print("Dodge!")
Counter with Water!

“That seems to work. Now I just need to add in the rest of the elements. Let’s see, I think the Book said Wind balances with Earth, and…”

“这似乎行得通。 现在,我只需要添加其余元素。 让我们看看,我认为这本书说风与地球保持平衡,……”

Baldric’s cover exploded into fragments, sending him flying several feet. Gathering himself, he turned to see more Magic being prepared by one of the heads. It looked like Earth this time.

鲍德瑞克的外衣破裂成碎片,使他飞了几英尺。 他聚在一起,转而看到更多的魔术师正在准备其中的一个。 这次看起来像地球。

attack = "Earth"

if attack == "Fire":
    print("Counter with Water!")
elif attack == "Water":
    print("Counter with Fire!")
elif attack == "Wind":
    print("Counter with Earth!")
elif attack == "Earth":
    print("Counter with Wind!")
else:
    print("Do
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值