C 學習中遇到問題 解決問題 1

2021-08-09 06:26:35 字數 364 閱讀 8692

.lastindexof("\\")).lastindexof("\\"));

其實分開測試,就很容易懂的,一點就懂的,不妨可以自己斷點試試看

分開測試:

.lastindexof("\\");

.substring(0,strceshi);

*上面的strceshi 就是返回了\上一級結束的目錄的長度

str的結果為: 「d:\c#xm\ceshi\ceshi\bin」

從上面可以看 一開取的和str比較一下 就知道少了一級的目錄,就是少了\debug

然後後面也是這麼操作直到取到程式的目錄:d:\c#xm\ceshi\ceshi

多動手,自己斷點,這個就會明白!!!*

Scrapy安裝遇到問題解決

win10平台 安裝scrapy遇到一些問題 1.本來使用命令 pip install scrapy2.然而我安裝了py2.x 和 py3.x 版本所有,所以使用該命會報錯,所以使用命令 我python3 為預設版本,py2名稱為python2 python m pip install scrapy...

Apache 啟動遇到問題解決

解決httpd could not reliably determine the server s fully qualified domain name 將裡面的 servername localhost 80 注釋去掉即可。再執行 httpd 然後可以通過瀏覽器訪問 http localhost...

densepose安裝遇到問題解決

問題1 執行下面命令是出現問題 detectron ops lib not found make sure that your caffe2 version includes detectron module 解決方法 跟蹤問題,出現在detectron utils env.py檔案的def get...