![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
andrew_CS
这个作者很懒,什么都没留下…
展开
-
计算python脚本运行时间的坑
程序运行时间=cpu时间 + io时间 + 休眠或者等待时间Python程序运行时间大于Python程序CPU时间(time.clock()):1、Python程序CPU计算时间:import datetimeimport timestartTime = time.clock()time.sleep(3)endTime = time.clock()print (endTi...原创 2019-03-01 15:29:34 · 362 阅读 · 0 评论 -
centos6.X升级python3.X方法
1、获取root权限:#su 2、安装Python可能使用的依赖命令:#yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel3、下载安装包并解压:#wget https://www.python.org/ftp/python/3.7.0/Python-3.7....原创 2019-05-27 11:47:40 · 449 阅读 · 0 评论