斜杠与反斜杠(slash / backslash)的区分

斜杠与反斜杠(slash vs. backslash)的区分

 

This is a slash: /. Because the top of it leans forward, it is sometimes called a “forward slash.”

This is a backslash: \. Notice the way it leans back, distinguishing it from the regular slash.

Slashes are often used to indicate directories and subdirectories in computer systems such as Unix and in World Wide Web c. Unfortunately, many people, assuming “backslash” is some sort of technical term for the regular slash, use the term incorrectly, which risks confusing those who know enough to distinguish between the two but not enough to realize that Web addresses rarely contain backslashes.

# 根据从左到右的书写\阅读习惯,向前是“从左到右”,向后是“从右到左”。

斜杠(slash): “ / ”是斜杠,因为它的顶端是向前面倾斜的,英文中有时候也叫做“forward slash”;

反斜杠(backslash):“\”是反斜杠,注意,它的顶端是向后倾斜的。要将它和普通的斜杠(“/”)区分开来。

斜杠经常会用来在诸如Unix的文件系统中和万维网网址中表示目录和子目录路径等。很遗憾的是,很多人都把反斜杠(“\”)当做是普通斜杠(“/”)的某种技术用语,错误的使用术语,混淆斜杠和反斜杠的风险让那些足够了解他们的人可以区分他们,但是了解仍不够他们意识到万维网的地址中很少会包含反斜杠(“\”)的。


可参考下列文章:

http://www.cs.ucsb.edu/~pconrad/topics/BackslashVsForwardSlash/

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值