![](https://img-blog.csdnimg.cn/20200301190736625.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Python
Python相关知识学习总结~
wyj925458224
这个作者很懒,什么都没留下…
展开
-
Python 进度条
方法一 : from tqdm import tqdm data_size = 100 for i in tqdm(range(data_size+1)): # 在输出下一个进度前,停止0.05秒 time.sleep(0.05) 方法二: import time data_size = 100 start = time.perf_counter() for...原创 2018-11-28 22:17:57 · 489 阅读 · 0 评论 -
Python 计算程序运行时间
import time #time.perf_counter() #返回计时器的精准时间(系统的运行时间),包含整个系统的睡眠时间 start = time.perf_counter() ''' 代码段 ''' end = time.perf_counter() print("time consuming : %.2fs"%(end - start)) import time #ti...原创 2018-11-28 21:02:37 · 274 阅读 · 0 评论