1
import os
File = open('Path/video_file.webm','rb')
Size = os.path.getsize('Path/video_file.webm')
Data = File.read(Size)
如何使用python播放'Data'中的內容而不是從其文件播放視頻?請幫幫我。我卡住了。提前致謝。使用python播放包含視頻數據的字符串
import os
File = open('Path/video_file.webm','rb')
Size = os.path.getsize('Path/video_file.webm')
Data = File.read(Size)
如何使用python播放'Data'中的內容而不是從其文件播放視頻?請幫幫我。我卡住了。提前致謝。使用python播放包含視頻數據的字符串
使用StringIO的
您可以使用 StringIO.StringIO(string)
從文本文件,然後發揮它,你通常會