V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  states  ›  全部回复第 1 页 / 共 1 页
回复总数  4
2016-04-22 17:23:58 +08:00
回复了 codingpp 创建的主题 Python 刚才测试了一下 Node.js 与 python 的计算性能,震惊了
# coding=utf-8
import time


def fibo(num):
x, y, z = 0, 0, 1
yield z
while x < num:
x += 1
y, z = z, y + z
yield z
if __name__=="__main__":
t = time.time()
for i in fibo(100000):
pass
print(time.time() - t)

1.0970628261566162

fibo(100000)这个计算完要 1 秒多,呵呵
2015-10-03 18:56:09 +08:00
回复了 pc10201 创建的主题 程序员 在 windows 上用 git 的最佳工具是什么?
用来用去还是 TortoiseGit 简单
你电脑不会是有感染型的病毒吧!!!!
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2455 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 14:41 · PVG 22:41 · LAX 07:41 · JFK 10:41
Developed with CodeLauncher
♥ Do have faith in what you're doing.