当前位置:网站首页>正反斜杠笔记
正反斜杠笔记
2022-07-28 05:25:00 【wr_01】
正斜线,符号是"/"
反斜线,符号是""
正反斜杠在不同操作系统中的使用
Unix中只用斜杠(" / "),作为目录分割符
由于web遵循unix命名,所以在网址(URL)中,/表示目录。
Linux中目前正反斜杠都支持
windows系统中正反斜杠都支持
- 正斜杠/通常用来分割命令行参数,
- 反斜杠\表示目录,windows本地路径用\,如C:\windows\system32。
windows时代,很多时候已经没有命令行参数的干扰,加上网络使用的扩展,现在斜杠和反斜杠可以互换,没有什么影响
在编程中有时我们会看到这样的路径写法,C:\windows\system32 ,也就是用两个反斜杠来来分割路径。事实上,上面的路径等同于C:/windows/system32 。
但是如果写成了C:\windows\system32 ,那就可能会出现各种奇怪的错误了。
在DOS中,反斜杠后面是路径,也就是文件名,而斜杠后是加DOS参数,比如
C:\windows\system32 …反斜杠的后面跟着的是文件名
C:\dir/p …正斜杠后面是命令行参数
边栏推荐
猜你喜欢

set_multicycle_path

Word自动目录字体修改和行间距的问题

mixup_ ratio

A NOVEL DEEP PARALLEL TIME-SERIES RELATION NETWORK FOR FAULT DIAGNOSIS

How can fluke dsx2-5000 and dsx2-8000 modules find the calibration expiration date?

Led selection - hardware learning notes 3

Measure computer battery capacity

What about the insufficient memory of Clickhouse aggregation? Then improve the polymerization performance

CLIP Learning Transferable Visual Models From Natural Language Supervision

Create a basic report using MS chart controls
随机推荐
Pytorch learning notes
Monitor the CPU temperature of raspberry pie 4B installed with esxi on ARM
Exploration of Clickhouse aggregation internal mechanism of aggregation
vi和vim命令
毕业论文 | 文献综述应该怎么写
Efficient Net_V2
Learning notes of hardware circuit design 1 -- temperature rise design
Ship detection in SAR image based on yolov5
RS232 RS485 RS422 communication learning and notes
Learning notes on hardware circuit design 2 -- step-down power circuit
Detailed explanation of word mail merge function: after merging, multiple word documents are generated and blank pages are deleted
clock tree分析实例
PyTorch 学习笔记 3 —— DATASETS & DATALOADERS & TRANSFORMS
听说你也在实习|当我采访了几个大三实习生之后。
Briefly introduce EMD decomposition, Hilbert transform and spectral method
Random life-1
PyTorch 学习笔记 2 —— About Tensor
Hugging face 的问题记录 I
ClickHouse 中的公共表表达式CTE
Install visual studio 2019 steps and vs2019 offline installation package on win7