美文网首页python学习笔记
python练手_93-time模块III

python练手_93-time模块III

作者: 学子CH | 来源:发表于2019-02-23 11:22 被阅读0次
    # -*- coding:utf-8 -*-
    # @Author: CH
    """
    @project: python study
    @time:2019/1/9-20:19
    @file_name:【程序93】time模块III.py
    @IDE:PyCharm 
    @else: DO NOT STOP STUDYING!!!
    """
    # 题目 时间函数举例3。
    #
    # 程序分析 如何浪费时间。
    if __name__ == '__main__':
        import time
        start = time.clock()
        for i in range(100):
            print(i)
        end = time.clock()
        print('different is %6.3f' % (end - start))
    
    

    相关文章

      网友评论

        本文标题:python练手_93-time模块III

        本文链接:https://www.haomeiwen.com/subject/rfzmeqtx.html