1.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "RedisConfig.xml")
2.Environment.CurrentDirectory + @"\RedisConfig.xml"
第二个不靠谱
mb5fe09d2d96fc4 博主文章分类:C#基础 ©著作权
1.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "RedisConfig.xml")
2.Environment.CurrentDirectory + @"\RedisConfig.xml"
第二个不靠谱
Python获取程序所在目录解决__file__或sys.argv[0]在py2exe下失效的问题。选
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M