python在代码完成时调用系统铃声

import subprocess
subprocess.call(['speech-dispatcher'])        #start speech dispatcher
subprocess.call(['spd-say', '"your process has finished"'])
原文地址:https://www.cnblogs.com/yibeimingyue/p/15411730.html