小编use*_*040的帖子

如何解决文件路径中的用户环境变量

窗户上的 Golang。尝试使用

os.Open("%userprofile%\\myfile.txt")
Run Code Online (Sandbox Code Playgroud)

获取file path not found和 golang 没有解析%userprofile%到我的C:\users\myusername文件夹。

windows environment-variables go

2
推荐指数
1
解决办法
730
查看次数

标签 统计

environment-variables ×1

go ×1

windows ×1