py -m pip install -U pygame --user 用这句命令来更新pygame pip install -U pip 用这句命令来更新pip # coding=gbk 在程序开头加上这行,解决中文的编码问题