摘要:
package main import ( "fmt" "io" "os" ) func main() { list := os.Args //获取命令行参数 if len(list) != 3 { fmt.Println("usage: xxx srcFile dstFile") return } s... 阅读全文
posted @ 2018-09-15 23:39
温柔的风
阅读(466)
评论(0)
推荐(0)
摘要:
package main import ( "bufio" "fmt" "io" "os" ) //写 func WriteFile(path string) { //打开文件,新建文件 f, err := os.Create(path) //传递文件路径 if err != nil { //有错误 ... 阅读全文
posted @ 2018-09-15 11:09
温柔的风
阅读(3380)
评论(0)
推荐(0)
浙公网安备 33010602011771号