码迷,mamicode.com
首页 >  
搜索关键字:string+    ( 95377个结果)
IGMPv3报文解析
通过使用Python struct库来解析IGMPv3报文 struct模块中的函数 函数 return explain pack(fmt,v1,v2…) string 按照给定的格式(fmt),把数据转换成字符串(字节流),并将该字符串返回. pack_into(fmt,buffer,offset ...
分类:其他好文   时间:2020-10-06 21:03:42    阅读次数:59
AC自动机板子
#include <queue> #include <cstdlib> #include <cmath> #include <cstdio> #include <string> #include <cstring> #include <iostream> #include <algorithm> u ...
分类:其他好文   时间:2020-10-06 20:54:49    阅读次数:33
假设有打乱顺序的一群人站成一个队列。 每个人由一个整数对(h, k)表示,其中h是这个人的身高,k是排在这个人前面且身高大于或等于h的人数。 编写一个算法来重建这个队列。
注意: 总人数少于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
Python中不可变类型和可变类型详解
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
学习的第一个C++,通讯录管理系统
#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
python字符串与数组之间的转化
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!