#beep 
import winsound

def beep() :
    Freq = 2500 # Set Frequency To 2500 Hertz
    Dur = 100 # Set Duration To 1000 ms == 1 second
    winsound.Beep(Freq,Dur)

 

Freq 播放頻率

Dur 為撥放時間,單位為ms

 

 

 

arrow
arrow
    文章標籤
    python
    全站熱搜

    Lung-Yu,Tsai 發表在 痞客邦 留言(0) 人氣()