mArSeN Asked:2021-12-13 18:19:03 +0000 UTC2021-12-13 18:19:03 +0000 UTC 2021-12-13 18:19:03 +0000 UTC 使用 playsound.playsound(unique_filename) 后,出现了我不熟悉的新错误 772 我导入了 playsound 并在使用错误“'\n' + errorBuffer.value.decode()) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd3 in position 0: invalid continuation byte”之后 python-3.x 1 个回答 Voted Best Answer Shap Po 2021-12-13T20:53:41Z2021-12-13T20:53:41Z 尝试在第 16 行.之前添加mp3: unique_filename = 'audio_' + str(random.randint(0,100000)) + '.mp3'
尝试在第 16 行
.之前添加mp3:unique_filename = 'audio_' + str(random.randint(0,100000)) + '.mp3'