下载麦子学院视频

#http://ocs1.maiziedu.com/xxtx/xxtx1.mp4
import urllib



def down():
    for i in range(15):
        #print i
        url='http://ocs1.maiziedu.com/xxtx/xxtx'
        newUrl=url+str(i+1)+'.mp4'
        print newUrl
        local='%s.mp4'%(i+1)
        urllib.urlretrieve(newUrl,local)





if __name__=='__main__':
    down()

 

转载于:https://www.cnblogs.com/dengyg200891/p/5340454.html

你可能感兴趣的:(c/c++)