import time
class Video(object):
def __init__(self,path):
self.path = "C:/Program Files (x86)/QuickTime/QuickTimePlayer.exe"
def play(self):
from os import startfile
startfile(self.path)
class Movie_MP4(Video):
type = "MP4"
movie = Movie_MP4(r"C:\Users\A\1.mp4")
movie.play()
如果更改“C:/Program Files(x86)/QuickTime”,则可以使用此代码播放windows media player文件/QuickTimePlayer.exe“去小径。在
如何才能让quicktime播放我的视频?在
改变
到
^{pr2}$备选方案: 使用}-请参阅他们的文档here
subprocess.call()
或{相关问题 更多 >
编程相关推荐