我无法播放文件“ARROW.mp4”可能出错了什么? 在尝试使用我的视频播放器播放文件时,它一直说它无法呈现文件。
#Opened the file to store the file.
f1 = open("ARROW.mp4","wb")
import urllib.request
#opened the page containing the file
myVideo = urllib.request.urlopen('http://o2tvseries.com/download/18454')
currentSizeOfFile = 0
#downloaded the file in the loop
while True:
party = myVideo.read(1000000)
if len(party) < 1 : break
currentSizeOfFile += len(party)
f1.write(party)
print(currentSizeOfFile,' copied\n')
#closed the file.
f1.close()