pygame _display = pygame.display color_black = pygame.Color() color_red = pygame.Color() version = maingame(): window = Screen_width = Screen_height = TANK_P1 = (): _display.init() maingame.window = _display.set_mode([maingame.Screen_widthmaingame.Screen_height]) maingame.TANK_P1 = Tank() _display.set_caption(+ version) .getTextSurface() : maingame.window.fill(color_black) .getEvent() maingame.window.blit(.getTextSurface(% )()) maingame.TANK_P1.displayTank() maingame.TANK_P1.move() _display.update() (): eventList = pygame.event.get() event eventList: event.type == pygame.QUIT: .endgame() event.type == pygame.KEYDOWN: event.key == pygame.K_LEFT: () maingame.TANK_P1.direction = event.key == pygame.K_RIGHT: () maingame.TANK_P1.direction = event.key == pygame.K_UP: () maingame.TANK_P1.direction = event.key == pygame.K_DOWN: () maingame.TANK_P1.direction = event.key == pygame.K_SPACE: () (text=): pygame.font.init() = pygame.font.get_fonts() font = pygame.font.SysFont() textSurface = font.render(textcolor_red) textSurface (fontList) (): () () Tank: TANK_P1 = (lefttop): .images = { : pygame.image.load(): pygame.image.load(): pygame.image.load(): pygame.image.load() } .direction = .image = .images[.direction] .rect = .image.get_rect() .rect.left = left .rect.top = top .speed = (): .image = .images[.direction] maingame.window.blit(.image.rect) (): .direction == : .rect.left > : .rect.left -= .speed .direction == : .rect.top > : .rect.top -= .speed .direction == : .rect.top + .rect.height < maingame.Screen_width: .rect.top += .speed .direction == : .rect.left + .rect.height < maingame.Screen_height: .rect.left += .speed ():
为什么边界这卡不住 老师!?
#请问老师,问什么我这个和老师代码一样运行结果不一样
老师这是个什么情况
老师为啥我这里没有载荷呢
我按照老师的步骤来的为什么没有反应
H5的新标签学了上节课的div标签就不用了嘛
老师,这里的grid-template-areas的值老师说要用单引号却用的是双引号,所以是都可以是吗
老师我想问一下这个backref后面跟的参数有什么具体要求吗?是将News类的类名首字母变成小写,作为参数的吗?还是传入一个表名?还是具体传入什么类型的参数
约束名到底是什么
我的打印的是ok是怎么回事
重启服务器,重启docker重启容器,都无法显示。centos7.5.防火墙已关闭
启动BannerAppliction后出现以下问题:
DiscoveryClient_LIVEGOODS-BANNER/YT88UO97QW8ISJJ:livegoods-banner:9000 - was unable to send heartbeat!
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8761 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect怎么回事?
为啥加个引号 老师可以详细说一下嘛
为什么我有五个
老师,为什么我运行的结果为两个None?
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637