from pygame import mixer
if __name__ == '__main__':
    # 音频文件路径
    Mp4Path = r"./music/jijitaimei.mp3"
    mixer.init()
    
    # 加载音乐
    mixer.music.load(Mp4Path)
    mixer.music.play(start=0.0)
    
    # 音乐停止播放
    mixer.music.stop()      
      
      版权属于:
      TanHaX
    
    
    
      
      作品采用:
      
        《
        署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
        》许可协议授权
      
    
  
        
      
    
      
        
        
          
          
          
Warning: Trying to access array offset on value of type null in /www/wwwroot/blog/usr/themes/Joe/core/function.php on line 261