Python语言: 计算python函数性能的小程序#coding=utf-8#修改自:http://www.python.org/doc/essays/list2str.html#这个是针对无参函数的,可以适当修改用在有参数的函数上import timedef timing(f, n): print f.__name__, n, "times&quo
<< 2009-6 >>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30