摘要: import ( "fmt" "os" "path/filepath" "path" ) files := "E:\\data\\test.txt" paths, fileName := filepath.Split(files) fmt.Println(paths, fileName) //获取路 阅读全文
posted @ 2022-02-15 17:27 酷酷的城池 阅读(1398) 评论(0) 推荐(0) 编辑