import socket """ 短链接:传输三个数据,传一个进行一次三次握手四次挥手,再传输一个,再建立一个三次握手四次挥手...... 长链接:只建立一次链接,传三个数据 """ def tcp_serve(resp_socket): resp_body = 'hahaha' resp_hea ...
分类:
编程语言 时间:
2020-03-31 01:02:25
阅读次数:
70
1. Push to origin/master was rejected 解决:git pull origin master --allow-unrelated-histories 2. Can't Update No tracked branch configured for branch ma ...
分类:
其他好文 时间:
2020-03-30 23:27:03
阅读次数:
62
函数式编程: 什么是函数式接口? 接口中有且只有一个抽象方法。当然默认方法,静态方法,私有方法可以包含。 什么是语法糖? 更加方便,原理不变的语法。 函数式接口的定义: 一个接口中只有一个抽象方法即可。 例如: @FunctionalInterface //标识这个接口是函数式接口。 修饰符 int ...
分类:
编程语言 时间:
2020-03-30 21:26:30
阅读次数:
72
public void CreateQrCode(HttpContext context) { string strCodeUrl = "https://www.baidu.com"; QRCodeGenerator qrGenerator = new QRCodeGenerator(); QRCo ...
#include <iostream> #include <cstdio> #include <cmath> #include <cstring> #include <vector> using namespace std; const int maxn = 30; struct Point{ in ...
分类:
其他好文 时间:
2020-03-30 17:51:34
阅读次数:
59
这里使用or来替代||,使用<% 和 %>替代{} /* 操作字符 */ #include <iostream> using namespace std; int main() <% int a = 10, b = 0; if (a or b) <% cout << true << endl; %> ...
分类:
编程语言 时间:
2020-03-30 16:01:37
阅读次数:
123
使用 int* pi = new int //申请动态变量, int* pi = new int(10) //直接进行申请 /* new动量申请 */ #include <iostream> using namespace std; int main() { int *pi = new int; * ...
分类:
编程语言 时间:
2020-03-30 15:55:46
阅读次数:
75
J. Jazz it Up!题目要求,n*m的因子中不能含有平方形式,且题目中已经说明n是一个无平方因子的数, 那么只要m是无平方因子的数,并且n和m没有共同的因子即可.要注意时间复杂度!代码:#include<iostream> #include<algorithm> #include<cmath ...
分类:
其他好文 时间:
2020-03-30 13:22:36
阅读次数:
54
# coding:utf-8from socket import *HOST = '127.0.0.1'PORT = 8088BUFSIZ =1024ADDR = (HOST,PORT)tcpCliSock = socket(AF_INET,SOCK_STREAM)tcpCliSock.connec ...
分类:
其他好文 时间:
2020-03-30 11:25:58
阅读次数:
111
1 #include <iostream> 2 #include <string> 3 //#include "Sales_item.h" 4 #include "Sales_item.cpp" 5 6 using namespace std; 7 //使用typedef简化定义 8 typedef ...
分类:
编程语言 时间:
2020-03-29 10:35:51
阅读次数:
64