获取当前目录
os.GetPWD() filepath.Abs(path) # 绝对目录 filepath.Dir(path) # 相对目录 可以 filepath.Abs(filepath.Dir(path))
获取字符目录,前缀,后缀等方法
filepath.Split(path) filepath.Base(path) # test.txt filepath.Ext(path) # .txt
os.GetPWD() filepath.Abs(path) # 绝对目录 filepath.Dir(path) # 相对目录 可以 filepath.Abs(filepath.Dir(path))
filepath.Split(path) filepath.Base(path) # test.txt filepath.Ext(path) # .txt
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M