Slash and BackSlash 记忆法

一时失言乱红尘 2021-09-30 14:26 475阅读 0赞

容易混淆的两兄弟

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 为左撇子的砍出的痕迹, \ (左上到右下)

转载于:https://www.cnblogs.com/lightsong/p/7732599.html

发表评论

表情:
评论列表 (有 0 条评论,475人围观)

还没有评论,来说两句吧...

相关阅读

    相关 【杂文】Do A Slash

    > “间接性踌躇满志,持续性混吃等死。” 虽然是一句玩笑话,但是否戳中了你的内心? 一时兴起的热血并不能让自身产生多大变化,成长是一场持久战。近年来,有一个很酷的词叫“斜杠

    相关 “猪and“熊

    前言:        剖析我们现在的学习方法以及学习情况,不慎某人总结出了两种学习方法:“猪法”,“熊法”。用这两个来命名,的确给了我们一个警钟,如果我们还是不