f20

来源:互联网 发布:淘宝内部优惠券推广商 编辑:程序博客网 时间:2024/05/29 19:38
buf = sock.recv(1024)
                    if len(buf) == 0:
                         pygame.quit()
                         sys.exit()
                    pygame.event.set_allowed(MOUSEBUTTONUP)
                    logger("client.txt","recv()")
                    i,j,x,y = tuple(buf.split(' '))
                    i,j,x,y = int(i),int(j),int(x),int(y)
                    cross[i][j] = BLACKPIECE                 
                    pygame.draw.circle(DISPLAYSURF,BLACK, (x,y), 10)
                    pygame.display.update()
原创粉丝点击