我想做这个很酷的程序,在播放音乐的同时列出我的人生目标。文本打印时我无法播放音乐。我怎样才能做到这一点?
from playsound import playsound
import time
print('My life goals are:')
playsound('spongebob.mp3.mp3', 1)
print('Life goal 1 \n')
time.sleep(0.2)
print('Life goal 2 \n')
time.sleep(0.2)
print('Life goal 3 \n')
time.sleep(0.2)
print('Life goal 4')
time.sleep(0.2)
print('Life goal 5')
知道我该怎么做吗?