Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 python 文件需要在启动时反复播放 mp3。以下是代码片段。
while True: playsound.playsound('file.mp3') time.sleep(0.1)
我在配置文件中添加了 python 路径,etc/profile如下所示,但问题是声音没有播放。 /usr/bin/python3 /opt/play_music.py
etc/profile
/usr/bin/python3 /opt/play_music.py
有什么解决方法吗?