字符串在任何开发语言中都非常重要,处理好字符串在日常开发中占有非常大的比重,也是是否熟练掌握一门语言的标志 一、字符串基础 1、Go字符串底层就是Byte数组 2、在golang中,字符,字符串中打印单个字符的本质就是一个整数,是该字符对应的utf-8编码的码值 平时开发过程中遍历字符串情况时常有, ...
分类:
其他好文 时间:
2020-04-05 13:40:30
阅读次数:
71
C语言是没有编码的。它的编码就是平台的默认编码。比方说在windows 上汉字编码用gb2312 或者 说cp936(GBK一般的windows默认代码页,windows分为不同的代码页,可以查看一下MSDN)。http://msdn.microsoft.com/zh-cn/goglobal/cc3 ...
分类:
编程语言 时间:
2020-04-05 11:59:32
阅读次数:
105
2020-04-04 18:25:18 问题描述: 给定一个0和1的非空的二维数组网格,一个岛是一个1(表示陆地)的组,4个方向(水平或垂直)连接。你可以假设网格的所有四条边都被水包围。计算不同岛屿的数量。当一个岛被认为与另一个岛相同时,它们有相同的形状,或在旋转后的形状相同(90,180,或270 ...
分类:
其他好文 时间:
2020-04-04 18:52:19
阅读次数:
61
昨天看到了微博小秘书关于全国性悼念活动倡议,我非常支持这个倡议。 因为修改灰色头像会有一定技术门槛,于是思考能否开发一个小工具方便大家使用。 考虑到第二天就是哀悼日,准备夜间快速开发上线。 0X00 废话少说先上东西 有兴趣的老哥可以访问:http://smartding.top:81/ 或者 ht ...
分类:
其他好文 时间:
2020-04-04 14:55:44
阅读次数:
81
1:平常的操作 (直接同for循环) let a = [{ id: '1', name: '1' }, { id: '2', name: '2' }, { id: '3', name: '2' }] let b = [{ id: '3', name: '3' }, { id: '1', ...
分类:
编程语言 时间:
2020-04-04 00:23:41
阅读次数:
66
官方文档:https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.tolist.html?highlight=numpy%20tolist numpy.ndarray.tolist method ndarray.tolis ...
分类:
其他好文 时间:
2020-04-04 00:21:53
阅读次数:
664
#include <iostream> #include <stdlib.h> #include <math.h> #include <sstream> using namespace std; void i2s(int x, string &basic_string) { stringstream ...
分类:
其他好文 时间:
2020-04-03 20:10:46
阅读次数:
82
#include <iostream> #include <string> #include <sstream> using namespace std ; void i2s(int x, string &basic_string) { stringstream ss; ss << x; ss >> ...
分类:
其他好文 时间:
2020-04-03 19:51:14
阅读次数:
53
$tcate = $_GPC['cate']; $page = ((!(empty($_GPC['page'])) ? intval($_GPC['page']) : 1)); $pagesize = ((!(empty($_GPC['pagesize'])) ? intval($_GPC['pag ...
分类:
其他好文 时间:
2020-04-03 15:14:29
阅读次数:
168
2019-2020-2 20175208张家华《网络对抗技术》Exp3 免杀原理与实践 实验内容 1.正确使用msf编码器,msfvenom生成如jar之类的其他文件,veil-evasion,加壳工具、使用C + shellcode编程或使用其他课堂未介绍方法自己利用shellcode编程等免杀工 ...
分类:
其他好文 时间:
2020-04-03 00:27:33
阅读次数:
103