摘要: ```c # include # include // 定义结构体 struct tagPoint { double x; double y; double z; }tagPoint; // 给tagPoint起别名Point typedef struct tagPoint Point; // 定义了一个tagPoint类型指针 typedef struct tag... 阅读全文
posted @ 2019-05-30 07:38 加州水果 阅读(187) 评论(0) 推荐(0) 编辑
摘要: ```c #include #include #include struct AGE { int year; int month; int day; }; struct Student { char *name; int num; struct AGE birthday; float score; }; int main() { ... 阅读全文
posted @ 2019-05-29 21:19 加州水果 阅读(212) 评论(0) 推荐(0) 编辑
摘要: jar 包maven依赖 阅读全文
posted @ 2019-05-26 18:34 加州水果 阅读(2356) 评论(0) 推荐(0) 编辑
摘要: ```go package main import ( "flag" "fmt" ) // flag.Type("flagName",defaultValue,"help message") *Type // 使用 $ go run args.go -ver 34 输出 34 var n = flag.Int("ver", 1, "测试参数选项") func main() { flag... 阅读全文
posted @ 2019-05-26 18:19 加州水果 阅读(929) 评论(0) 推荐(0) 编辑
摘要: ```python # coding=UTF-8 # see: https://www.cnblogs.com/victorwu/p/5762665.html # python2.7 可用 import argparse parser = argparse.ArgumentParser(description = '支持的命令描述信息') parser.add_argument('--ver',... 阅读全文
posted @ 2019-05-26 16:38 加州水果 阅读(258) 评论(0) 推荐(0) 编辑
摘要: python2.7 版 自定义设置代理、超时客户端 python3.6 版 python import json import requests import sys if len(sys.argv) 阅读全文
posted @ 2019-05-26 15:27 加州水果 阅读(1828) 评论(0) 推荐(0) 编辑
摘要: golang json数据的转换 1、json bytes 转结构体 阅读全文
posted @ 2019-05-25 18:52 加州水果 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 极简设计模式 一、设计模式原则 单一指责原则 开闭原则 里氏替换原则 接口分离原则 依赖倒置原则 迪米特法则 不要重复 二、设计模式分类 创建型模式 : 抽象工厂 创建几类家族的实例 构建者 把对象的构建和它分开 工厂方法 创建一个共通接口的若干子类的实例 原型 创建一个被克隆初始化的实例用于复制或 阅读全文
posted @ 2019-05-25 13:58 加州水果 阅读(225) 评论(0) 推荐(0) 编辑
摘要: ```shell #切割 $ split -b 100m aso_platmonitor.sql aso_split #合并 $ cat aso_splita* > aso_platmonitor.sql ``` 阅读全文
posted @ 2019-05-24 14:32 加州水果 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 一、备份,导入 1.1、备份 1.2、导入 阅读全文
posted @ 2019-05-24 13:56 加州水果 阅读(122) 评论(0) 推荐(0) 编辑