早教吧作业答案频道 -->其他-->
Application.StartupPath.Substring(0,Application.StartupPath.Substring())Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"))这句代码神马意思?这是指的哪条
题目详情
Application.StartupPath.Substring(0,Application.StartupPath.Substring())
Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"))这句代码神马意思?这是指的哪条路径?
Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"))这句代码神马意思?这是指的哪条路径?
▼优质解答
答案和解析
应该是:Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\"));Application.StartupPath:表示可启动的可执行文件的路径,就是你运行的这个程序的文件路径;.LastIndexOf("\\")):表示获取字符串中最后一个"\"所在位置,是一个整数值;.Substring(a,b):表示从字符串的第a的位置开始,截取长度为b的字符
希望能解决您的问题.
希望能解决您的问题.
看了 Application.St...的网友还看了以下:
比如实测直径7.7,长度505,实测重量0.187,然后每延米重量是0.371,是怎么算的呢如果是 2020-04-07 …
比如实测直径7.7,长度505,实测重量0.187,然后每延米重量是0.371,是怎么算的呢如果是 2020-04-07 …
有一只有0~0.6A和0~有一只有0~0.6A和0~3A两个量程的电流表,实验中用的是0~0.6A 2020-04-09 …
有个串stringA="中国world";想截”中”放个串B,能用B=substring(0,如果 2020-05-14 …
0.25除以0.15,当除到商是1.6时,余数是0.01,为什么是0.01?我是这样算的,0.25 2020-05-16 …
Application.StartupPath.Substring(0,Application.S 2020-05-17 …
设f(x)=arctan1/x,求f(0-0),f(0+0).我想问下后面的f(0-0),f(0+ 2020-07-22 …
一道简便计算.0.12+0.23+0.34+0.45+0.56+0.67+0.78注意最后一位是循 2020-07-24 …
已知函数f(x)在[0,1]上连续,在(0,1)内可导,且f(0)=0,f(1)=1.证明:(已知函 2020-11-02 …
并联串联的概率计算元件1,2并联,元件3,4串联的线路,元件可以工作的概率都是0.9,求系统可以工作 2020-11-03 …