码迷,mamicode.com
首页 > 其他好文 > 详细

Slash and BackSlash 记忆法

时间:2017-10-25 23:48:34      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:tle   redirect   span   ogr   微软   转移   make   direct   url   

容易混淆的两兄弟

Slash

https://en.wikipedia.org/wiki/Slash

Slash (punctuation), the "/" punctuation character, also used in computing

BackSlash

https://en.wikipedia.org/wiki/Backslash

The backslash (\) is a typographical mark (glyph) used mainly in computing and is the mirror image of the common slash (/). It is sometimes called a hack, whack, escape (from C/UNIX), reverse slash, slosh, downwhack, backslant, backwhack, bash, reverse slant, and reversed virgule.

混淆点

经常为 反斜杠(backslash) 和 斜杠(slash)到底对应哪一个字符(\ 或 /)迷惑

应用场景

微软系统 使用 反斜杠(\) 作为 目录分割符号, Linux使用 斜杠(/) 作为目录分隔符,

通用场景,大都使用 斜杠 , 例如 URL

反斜杠,用作语言中的转移字符。

 

反斜杠(slash)词解

https://www.bing.com/dict/search?q=slash&FORM=BDVSP2&qpvt=slash

  • n.斜杠;切口;斜线号;劈
  • v.劈;大幅度削减;大大降低
  • 网络斩击;猛砍;大量削减
  • ~ sth
    (用利器)砍,劈to make a long cut with a sharp object, especially in a violent way

 

查看单词含义, 其中有 砍 的含义, 结合人类大都是 使用右手的习惯, 顿时领悟   slash 为右手砍出的痕迹,/ (从右上到左下)

而 backslash 为左撇子的砍出的痕迹, \ (左上到右下)

 

Slash and BackSlash 记忆法

标签:tle   redirect   span   ogr   微软   转移   make   direct   url   

原文地址:http://www.cnblogs.com/lightsong/p/7732599.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!