注:安装任何库前,都先更新下pip版本 python -m pip install --upgrade pip 安装pygame : pip install pygame 转载于:https://www.cnblogs.com/koudaiyoutang/p/11556917.html