python 使用pyinstaller 如何把音乐打包exe,就是运行打包的程序时播放背景音乐?

python 使用pyinstaller 如何把音乐打包exe,就是运行打包的程序时播放背景音乐?想点开exe时一边自动播放音乐一边运行程序。

首先你得在代码里面设置背景音乐
Python播放MP3音频作为背景音乐:https://zhuanlan.zhihu.com/p/144826876
然后打包就行:https://www.cnblogs.com/darcymei/p/9397173.html

看看这个
https://blog.csdn.net/m0_61791601/article/details/124169561?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165914625516781667865737%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165914625516781667865737&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-1-124169561-null-null.nonecase&utm_term=%E6%89%93%E5%8C%85&spm=1018.2226.3001.4450

这篇文章讲的很详细,请看:Python打包(一)使用PyInstaller打包exe可执行程序