states 最近的时间轴更新
states

states

V2EX 第 61742 号会员,加入于 2014-05-03 00:01:56 +08:00
states 最近回复了
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   ·   我们的愿景   ·   实用小工具   ·   2723 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 14:57 · PVG 22:57 · LAX 07:57 · JFK 10:57
Developed with CodeLauncher
♥ Do have faith in what you're doing.