当前位置:网站首页>正反斜杠笔记
正反斜杠笔记
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 …正斜杠后面是命令行参数
边栏推荐
- 雷达成像 Matlab 仿真 2 —— 脉冲压缩与加窗
- 多个ics日历合并成单个ics日历
- Efficient Net_V2
- Random life-1
- Transformer self attention mechanism and complete code implementation
- Convert data in grilview into datatable
- 根据IP地址和子网掩码求主机所在的网络地址和广播地址
- Beta分布(概率的概率)
- Chinese display problem of calendarextender control
- USB network native driver for esxi updated to support esxi7.0.1
猜你喜欢

IMS-FACNN(Improved Multi-Scale Convolution Neural Network integrated with a Feature Attention Mecha

Cronbach’s α?KMO系数?因子载荷?史上最易懂的问卷信效度分析教程!!!(SPSS和AMOS)

qt实现将相关信息输出到日志文件

Matlab simulation of radar imaging 2 - pulse compression and windowing

How to test industrial Ethernet cables (using fluke dsx-8000)?

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

Electric fast burst (EFT) design - EMC series hardware design notes 4

I heard that you are also practicing when I interviewed several junior interns.

Overall understanding of PLC

A NOVEL DEEP PARALLEL TIME-SERIES RELATION NETWORK FOR FAULT DIAGNOSIS
随机推荐
VB OCX applied to Web
多个ics日历合并成单个ics日历
Efficient Net_V2
毕业论文 | 文献综述应该怎么写
Fluke dtx-1800 and its accessories dtx-cha002 channel adapter channel replacement RJ45 socket notes
ASP. Net read database bound to treeview recursive mode
天线效应解决办法
ICC2(一)Preparing the Design
How to pop up the message dialog box
ConNeXt
Design and analysis of contactor coil control circuit
Distinguishing PCB quality by color is a joke in itself
qt绘画事件-设置背景图片
How can fluke dsx2-5000 and dsx2-8000 modules find the calibration expiration date?
Measure computer battery capacity
Hugging face 的入门使用
Matlab 信号处理
Matlab simulation of radar imaging 3 - multi-target detection
set_multicycle_path
机器学习笔记 5 —— Logistic Regression