![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
dicc9527
这个作者很懒,什么都没留下…
展开
-
python 百分比显示
import time,sysi=1while 1: i+=1 time.sleep(0.1) print '\r%s'%i, sys.stdout.flush() if(i==100):break注意print 最后的, 号原创 2013-10-12 14:47:46 · 2027 阅读 · 0 评论 -
pycurl 安装
pycurl需要curl-config版本在7.15以上,安装curl最新版本7.33下载最新curl7.33,后./configure --prefix=/opt/app/curl7.33 & make & make install然后后做ln -s /opt/app/curl7.33/lib/libcurl.so.4 /lib64/libcurl.so.4, 如果不做import py原创 2013-11-11 14:31:41 · 661 阅读 · 0 评论 -
HLS直播预取视频并更新m3u8
#!/usr/bin/python27import jsonimport threadingimport urllibimport sysimport hashlibimport timeimport commandsclass myThread(threading.Thread): def __init__(self, url): threading.Th原创 2014-09-23 16:03:29 · 5497 阅读 · 0 评论 -
paramiko安装
下载paramiko,用python setup.py build && python原创 2014-09-03 15:40:28 · 462 阅读 · 0 评论 -
web.py简用
import web,sysimport jsonsys.path.append('/opt/bin')sys.path.append('/opt/web/pyweb')import twodaysclips#import getchannelsimport QiyiDownClipsurls = ( '/(.*)', 'hello')app = web.applica原创 2014-11-21 08:06:31 · 542 阅读 · 0 评论