优秀编辑者
722
个编辑
MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针。
如果在编辑的过程中遇到了什么问题,可以去讨论板提问。
为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证。
MCBBS Wiki GitHub群组已上线!
您可以在回声洞中发表吐槽!
服务器状态监控。点击进入
本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>
Salt lovely(留言 | 贡献) (添加了Java、VBS、Python2.X的咏e;暂无作业,咸极无聊,开始整活) |
小 (→Python2: 显示出问题了) |
||
| (未显示1个用户的5个中间版本) | |||
| 第3行: | 第3行: | ||
相关条目:[[咏e]] | 相关条目:[[咏e]] | ||
== 一些想说的 == | |||
这个页面是原本是用于测试格式的,没想到还能用来嘲笑那些喜欢咏e的人。 | |||
<pre><· console.time('e'); var e = (() => { let e = 'e', dep = 24; while(dep-- > 0) e = e + e; return e })(); console.timeEnd('e'); | |||
·> e: 0.010009765625 ms | |||
<· e.length | |||
·> 16777216</pre> | |||
不用任何环境,打开浏览器复制代码,0.01毫秒就能生成2的24次方(越1678万)个“e”,改改参数还可以生成更多。 | |||
如果单纯地想要撑爆浏览器,把上面的dep参数改成32以上就行了。 | |||
我以前有个写着玩的刷屏机,直接用换行符刷屏,效果可比这个东西爆炸多了,还能让群主撤回得手酸。 | |||
不参与咏e狂欢,不是因为这个东西和我那陈旧的思想合不来,只是玩多了,觉得无聊。 | |||
== 使用C语言咏e == | == 使用C语言咏e == | ||
<pre>#include <stdio.h> | |||
int main() | |||
{ | |||
unsigned int e='e'*'e'*'e'; | |||
for(unsigned int E='e';E<e;E++) | |||
printf("e"); | |||
return e; | |||
}</pre> | |||
== 使用VB咏e == | == 使用VB咏e == | ||
<pre>Sub Main() | |||
Dim E As Integer, EE As String | |||
For E=Asc("e") To Asc("e")*Asc("e")*Asc("e") | |||
EE=EE+"e" | |||
Next | |||
Print(EE) | |||
End Sub</pre> | |||
=== 使用VBS咏e === | === 使用VBS咏e === | ||
<pre>Dim E As Integer, EE As String | |||
For E=Asc("e") To Asc("e")*Asc("e")*Asc("e") | |||
EE=EE+"e" | |||
Next | |||
Print(EE)</pre> | |||
== 使用Python咏e == | == 使用Python咏e == | ||
<div class="python"> | |||
<pre>E=-69 | |||
while E<101: | |||
print('e', end=<nowiki>''</nowiki>) | |||
E+=1</pre> | |||
</div> | |||
=== 危险的方式 === | === 危险的方式 === | ||
<div class="python"> | |||
<pre>while True: | |||
print('e', end=<nowiki>''</nowiki>)</pre> | |||
</div> | |||
=== Python2 === | === Python2 === | ||
<div class="python"> | |||
<pre>E=-69 | |||
while E<101: | |||
print 'e', | |||
E+=1</pre> | |||
</div> | |||
== 使用Java咏e == | == 使用Java咏e == | ||
<pre>public class Spell_e { | |||
public static void main(String <nowiki>[]</nowiki>args) { | |||
for(int e=-1*'e';e<'e';e++){ | |||
System.out.printf("e"); | |||
} | |||
} | |||
}</pre> | |||
== 使用JS咏e == | == 使用JS咏e == | ||
<div class="js"> | |||
<pre>document.write("eeeeeeeeeeeeeeeeeee")//请不要这么做</pre> | |||
</div> | |||
== 使用Batch咏e == | |||
<div class="batch"> | |||
<pre>@ECHO OFF | |||
:SPELLE | |||
ECHO e | |||
GOTO SPELLE</pre> | |||
</div> | |||