为什么不用第三方库呢? 试试这两个call. import subprocess def play(audio_file_path): subprocess.call(["afplay", audio_file_path]) ...
確定! 回上一頁