通过使用Python struct库来解析IGMPv3报文 struct模块中的函数 函数 return explain pack(fmt,v1,v2…) string 按照给定的格式(fmt),把数据转换成字符串(字节流),并将该字符串返回. pack_into(fmt,buffer,offset ...
分类:
其他好文 时间:
2020-10-06 21:03:42
阅读次数:
59
#include <queue> #include <cstdlib> #include <cmath> #include <cstdio> #include <string> #include <cstring> #include <iostream> #include <algorithm> u ...
分类:
其他好文 时间:
2020-10-06 20:54:49
阅读次数:
33
注意: 总人数少于1100人。 示例 输入: [[7,0], [4,4], [7,1], [5,0], [6,1], [5,2]] 输出: [[5,0], [7,0], [5,2], [6,1], [4,4], [7,1]] public static void main(String[] args ...
分类:
编程语言 时间:
2020-10-06 20:40:36
阅读次数:
25
1. 什么是不可变类型 变量对应的值中的数据是不能被修改,如果修改就会生成一个新的值从而分配新的内存空间。 不可变类型: 数字(int,long,float) 布尔(bool) 字符串(string) 元组(tuple) 案例一 结果: 两个不同的数字 案例二: 结果: 两个不同的数字 2. 什么是 ...
分类:
编程语言 时间:
2020-10-06 20:15:20
阅读次数:
21
package 大大大; import java.util.Random; import javax.swing.JOptionPane; import javax.swing.*; public class kuang { public static void main(String[] args ...
分类:
其他好文 时间:
2020-10-06 20:12:30
阅读次数:
27
#include <string.h> #include <stdio.h> #include #include using namespace std; int n,m,a[11000],c[11000]; //差分建树,区间更新 int lowbit(int x) { return x&-x; ...
分类:
编程语言 时间:
2020-10-06 20:10:09
阅读次数:
25
#include <bits/stdc++.h> using namespace std; stack<char> stack_op; stack<int> stack_num; char str[10000]; string change; int pow(int x, int y) { int ...
分类:
其他好文 时间:
2020-10-06 20:08:42
阅读次数:
25
#include <iostream> #include <string> #define MAX 500 using namespace std; struct person { string name; int age; }; struct contact { person persons[MA ...
分类:
编程语言 时间:
2020-10-05 22:33:17
阅读次数:
48
arr = strval.split('') 字符串转数组 strval = ''.join(arr) 数组转字符串 ...
分类:
编程语言 时间:
2020-10-05 22:26:04
阅读次数:
32
匿名类 import java.io.File; import java.io.FileFilter; import java.io.FilenameFilter; public class Demo02Filter { public static void main(String[] args) ...
分类:
其他好文 时间:
2020-10-05 22:22:05
阅读次数:
24