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

 

import subprocess
subprocess.call(['speech-dispatcher'])        #start speech dispatcher
subprocess.call(['spd-say', '"your process has finished"'])

 

posted on 2021-10-15 16:48  一杯明月  阅读(211)  评论(0编辑  收藏  举报