摘要:
```c # include # include // 定义结构体 struct tagPoint { double x; double y; double z; }tagPoint; // 给tagPoint起别名Point typedef struct tagPoint Point; // 定义了一个tagPoint类型指针 typedef struct tag... 阅读全文
摘要:
```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() { ... 阅读全文
摘要:
jar 包maven依赖 阅读全文
摘要:
```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... 阅读全文
摘要:
```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',... 阅读全文
摘要:
python2.7 版 自定义设置代理、超时客户端 python3.6 版 python import json import requests import sys if len(sys.argv) 阅读全文
摘要:
golang json数据的转换 1、json bytes 转结构体 阅读全文
摘要:
极简设计模式 一、设计模式原则 单一指责原则 开闭原则 里氏替换原则 接口分离原则 依赖倒置原则 迪米特法则 不要重复 二、设计模式分类 创建型模式 : 抽象工厂 创建几类家族的实例 构建者 把对象的构建和它分开 工厂方法 创建一个共通接口的若干子类的实例 原型 创建一个被克隆初始化的实例用于复制或 阅读全文