Latest web development tutorials

Pythonは演習93を含み、

Pythonの100リー Pythonの100リー

タイトル:例えば、時間の3機能、。

プログラム解析:なし。

ソースコード:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    import time
    start = time.clock()
    for i in range(10000):
        print i
    end = time.clock()
    print 'different is %6.3f' % (end - start)

上の例の出力は、次のとおりです。

0
1
2
3
4
……
different is  0.014

Pythonの100リー Pythonの100リー