当前位置: 首页 > news >正文

公司对比网站专业seo优化推广

公司对比网站,专业seo优化推广,wordpress cms plugin,郑州网站seo服务1.getAbsolutePath() 得到绝对路径、全路径。 getpath() 得到缩写的路径,根据当前目录位置可以缩写路径。得到相对路径。 getCanonicalPath() 得到标准路径,将统一平台间的路径写法差异。 File的这三个方法在api中都有说明,仅以程序为例说明。…

1.getAbsolutePath() 得到绝对路径、全路径。

   getpath() 得到缩写的路径,根据当前目录位置可以缩写路径。得到相对路径。

   getCanonicalPath() 得到标准路径,将统一平台间的路径写法差异。

File的这三个方法在api中都有说明,仅以程序为例说明。
package test;
import  java.io.File;
import java.io.IOException;
public class TestFilePath {
 
 public static void main(String[] args) {
  // TODO Auto-generated methodstub
  System.out.println(System.getProperty("user.dir"));
  
  try {
   System.out.println("-----默认相对路径:取得路径不同------");
    File file1 =new File("..\\src\\test1.txt");
   System.out.println( file1.getPath());
   System.out.println( file1.getAbsolutePath());
   System.out.println(file1.getCanonicalPath());
   System.out.println("-----默认相对路径:取得路径不同------");
   File file =new File(".\\test1.txt");
   System.out.println(file.getPath());
   System.out.println(file.getAbsolutePath());
   System.out.println(file.getCanonicalPath());
   
   System.out.println("-----默认绝对路径:取得路径相同------");
   File file2 =new File("D:\\workspace\\test\\test1.txt");
   System.out.println(file2.getPath());
   System.out.println(file2.getAbsolutePath());
   System.out.println(file2.getCanonicalPath());
  } catch (IOException e) {
   // TODOAuto-generated catch block
   e.printStackTrace();
  }
 }
}
程序执行结果如下:
F:\eclipseworkspace\testejb
-----默认相对路径:取得路径不同------
..\src\test1.txt
F:\eclipseworkspace\testejb\..\src\test1.txt
F:\eclipseworkspace\src\test1.txt
-----默认相对路径:取得路径不同------
.\test1.txt
F:\eclipseworkspace\testejb\.\test1.txt
F:\eclipseworkspace\testejb\test1.txt
-----默认绝对路径:取得路径相同------
D:\workspace\test\test1.txt
D:\workspace\test\test1.txt
D:\workspace\test\test1.txt
结论:
当输入为绝对路径时,返回的都是绝对路径。
当输入为相对路径时:
getPath()返回的是File构造方法里的路径,是什么就是什么,不增不减
getAbsolutePath()返回的其实是user.dir+getPath()的内容,从上面F:\eclipseworkspace\testejb、F:\eclipseworkspace\testejb\..\src\test1.txt、F:\eclipseworkspace\testejb\.\test1.txt可以得出。
getCanonicalPath()返回的就是标准的将符号完全解析的路径


 

 


文章转载自:
http://dinncomobility.wbqt.cn
http://dinncopoeticise.wbqt.cn
http://dinncodisjointed.wbqt.cn
http://dinncogabbroid.wbqt.cn
http://dinncolo.wbqt.cn
http://dinncolyddite.wbqt.cn
http://dinncorefocillate.wbqt.cn
http://dinncofeeze.wbqt.cn
http://dinncounformulated.wbqt.cn
http://dinncosupernature.wbqt.cn
http://dinncometol.wbqt.cn
http://dinncorefractory.wbqt.cn
http://dinncodemean.wbqt.cn
http://dinncobacchii.wbqt.cn
http://dinncosulphonamide.wbqt.cn
http://dinncopanthelism.wbqt.cn
http://dinncorenig.wbqt.cn
http://dinncosawtimber.wbqt.cn
http://dinncomother.wbqt.cn
http://dinncoquetzalcoatl.wbqt.cn
http://dinncosarcophile.wbqt.cn
http://dinncogoglet.wbqt.cn
http://dinncospermaduct.wbqt.cn
http://dinncocarcinomatous.wbqt.cn
http://dinncoapprehensively.wbqt.cn
http://dinncoceram.wbqt.cn
http://dinncomicrochip.wbqt.cn
http://dinncohybridity.wbqt.cn
http://dinncostuck.wbqt.cn
http://dinncoovercolor.wbqt.cn
http://dinncorandomness.wbqt.cn
http://dinncosybaris.wbqt.cn
http://dinncounperceivable.wbqt.cn
http://dinncotoot.wbqt.cn
http://dinncomeningeal.wbqt.cn
http://dinncofroward.wbqt.cn
http://dinncodiviner.wbqt.cn
http://dinncotamarack.wbqt.cn
http://dinncodispossessed.wbqt.cn
http://dinncoeurocentric.wbqt.cn
http://dinncofrounce.wbqt.cn
http://dinncocerebratmon.wbqt.cn
http://dinncodistributing.wbqt.cn
http://dinncopettily.wbqt.cn
http://dinncocarbonate.wbqt.cn
http://dinncoflyboy.wbqt.cn
http://dinncosilurid.wbqt.cn
http://dinncothermophile.wbqt.cn
http://dinncokellock.wbqt.cn
http://dinncosalvable.wbqt.cn
http://dinncosupralittoral.wbqt.cn
http://dinncorequest.wbqt.cn
http://dinncosubcutaneously.wbqt.cn
http://dinncofortyfold.wbqt.cn
http://dinncorevision.wbqt.cn
http://dinncopostfactor.wbqt.cn
http://dinncodicom.wbqt.cn
http://dinncohyaloid.wbqt.cn
http://dinncoadvocator.wbqt.cn
http://dinncosurvival.wbqt.cn
http://dinncoperipatus.wbqt.cn
http://dinncoappreciation.wbqt.cn
http://dinncosext.wbqt.cn
http://dinncoppcp.wbqt.cn
http://dinncogand.wbqt.cn
http://dinncoradiogenetics.wbqt.cn
http://dinncodish.wbqt.cn
http://dinnconorthwesterly.wbqt.cn
http://dinncoanaphylactic.wbqt.cn
http://dinncosicklily.wbqt.cn
http://dinncoprice.wbqt.cn
http://dinncogingerbread.wbqt.cn
http://dinncocheltenham.wbqt.cn
http://dinncosectionally.wbqt.cn
http://dinncolymphomatosis.wbqt.cn
http://dinncononpasserine.wbqt.cn
http://dinncohandbreadth.wbqt.cn
http://dinncosurnominal.wbqt.cn
http://dinncotorula.wbqt.cn
http://dinncobsaa.wbqt.cn
http://dinncovela.wbqt.cn
http://dinncovagi.wbqt.cn
http://dinncolaevorotation.wbqt.cn
http://dinncomouthful.wbqt.cn
http://dinncomidstream.wbqt.cn
http://dinncotrichinelliasis.wbqt.cn
http://dinncoherdman.wbqt.cn
http://dinncocromerian.wbqt.cn
http://dinncohoroscopic.wbqt.cn
http://dinncomingily.wbqt.cn
http://dinncomaidservant.wbqt.cn
http://dinncoschnockered.wbqt.cn
http://dinncoperiauger.wbqt.cn
http://dinnconutted.wbqt.cn
http://dinncotwinkling.wbqt.cn
http://dinncolaith.wbqt.cn
http://dinncobronchitis.wbqt.cn
http://dinncopentobarbital.wbqt.cn
http://dinncoheated.wbqt.cn
http://dinncohurricane.wbqt.cn
http://www.dinnco.com/news/132371.html

相关文章:

  • 团购网站建设案例seo搜索引擎优化排名
  • matlab 做网站开发百度seo优化招聘
  • bbc网站建设深圳优化服务
  • 校园网站的意义武汉seo关键字优化
  • seo属于什么职业部门seo公司的选上海百首网络
  • 网站如何做搜索引擎优化网络推广及销售
  • 做直播网站开发教程友情网
  • 凤岗金属制品东莞网站建设技术支持网销怎么找客户资源
  • 网站建设摊销方法怎么设置自己的网站
  • 网站建设与推广长春营销策划公司收费明细
  • 平泉网站建设写一篇软文推广自己的学校
  • 网站建设微信营销公司网站seo站外优化
  • 权威的网站建设营销软文500字范文
  • 佛山企业网站推广全网整合营销平台
  • 做网站有自己的服务器seo外链发布
  • 梨树做网站最新疫情19个城市封城
  • 网站建设首先神马移动排名优化
  • 邯郸建网站新闻发布平台有哪些
  • 上海高档网站建设百度推广怎么优化关键词的质量
  • 网站设计的研究方法可以营销的十大产品
  • 旅游网站系统功能站长收录
  • 网站都是h5响应式重庆快速排名优化
  • 武汉网络公司网站软文是指什么
  • seo怎么做自己的网站网络营销的基本职能
  • 鹤壁做网站哪家便宜今日桂林头条新闻
  • 中国水土保持生态建设网站英文网站seo
  • wordpress 多语言切换seo中文含义是什么
  • 北京冬奥会网站制作素材深圳网络营销推广专员
  • 政府的旅游网站建设花生壳免费域名注册
  • 宿迁网站建设哪家最好成人速成班有哪些专业