合适地使用可变参数,可以让代码简单易用,尤其是输入输出类函数,比如日志函数等。 本文主要从4个实例介绍可变参数用法。 程序代码: package main import ( "bytes" "fmt" ) /****************** 1 **************** 定义可参变数函数 ...
分类:
编程语言 时间:
2020-02-17 01:17:13
阅读次数:
112
之前有个一直困扰我的问题,再用charles抓包时遇到connect方法的,什么都抓不到,不知道该如何解决 1.情景:抓包的域名下 全部是unknown,右侧出现了乱码 2.查看unknown的notes里面:SSL Proxying not enabled for this host:enable ...
分类:
其他好文 时间:
2020-02-14 16:26:54
阅读次数:
59
文本预处理 读入文本 分词 建立字典,将每个词映射到一个唯一的索引(index) 将文本从词的序列转换为索引的序列,方便输入模型 读入文本 import collections import re def read_time_machine(): with open('/home/kesci/inp ...
分类:
其他好文 时间:
2020-02-14 11:01:10
阅读次数:
54
The goal of this book is to document commonly known and lesser known methods of doing various tasks using only built in features. Using the snippets f ...
分类:
系统相关 时间:
2020-02-12 20:13:46
阅读次数:
59
Petr has just bought a new car. He's just arrived at the most known Petersburg's petrol station to refuel it when he suddenly discovered that the petr ...
分类:
其他好文 时间:
2020-02-12 00:42:21
阅读次数:
53
0. 1. Array Its size is fixed; The size must be known at compile-time; 2. Examples ...
分类:
编程语言 时间:
2020-02-11 09:32:18
阅读次数:
53
Canary 参考链接:https://ctf wiki.github.io/ctf wiki/pwn/linux/mitigation/canary zh/ 0x1 简介: 用于防止栈溢出被利用的一种方法,原理是在栈的ebp下面放一个随机数,在函数返回之前会检查这个数有没有被修改,就可以检测是否发 ...
分类:
其他好文 时间:
2020-02-10 17:49:53
阅读次数:
96
thrift链接:https://www.cnblogs.com/sxrtb/p/12209455.html 一 thrift文件 文件名为tutorial.thrift /* * Licensed to the Apache Software Foundation (ASF) under one ...
分类:
其他好文 时间:
2020-02-08 17:29:03
阅读次数:
47
做了很久的java,最近有空研究下go语言,跟java一样,go语言也是一门语言,那么他的学习方法跟java是相差不远的,记得之前入门java的时候,自己摸索, 一抹黑很难受,那么现在学习go语言,因为有了之前的经验,所以自己从基础开始学习go语言。 一 数据类型 java中 数据类型分为: 基本数 ...
分类:
编程语言 时间:
2020-02-04 18:50:53
阅读次数:
109
http://poj.org/problem?id=1308 Description A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more ...
分类:
其他好文 时间:
2020-02-04 11:11:57
阅读次数:
84