CSS Ribbon

Reproducing the GitHub Ribbon in CSS

粘包_Server

from socket import *
# import subprocess
ip_port = ('127.0.0.1',8080)
back_log = 5
buffer_size = 1024
tcp_server = socket(AF_INET,SOCK_STREAM)
tcp_server.bind(('127.0.0.1',8080))
tcp_server.listen(back_log)

coon,addr = tcp_server.accept()

data1 = coon.recv(buffer_size)
print('第一次数据接收',data1)
data2 = coon.recv(buffer_size)
print('第二次数据接收',data2)
data3 = coon.recv(buffer_size)
print('第三次数据接收',data3)

posted on 2018-03-10 06:47  pandaboy1123  阅读(101)  评论(0编辑  收藏  举报

导航