[Python] Windows 사운드시스템 체크하기

import winsound

try:
    winsound.PlaySound("*", winsound.SND_ALIAS)
    print 'Sound hardware is OK'
except RuntimeError, e:
    print 'Sound hardware has problem,', e

가장 많이 본 글