Stay Hungry,Stay Foolish!

Slash and BackSlash 记忆法

容易混淆的两兄弟

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

 

posted @   lightsong  阅读(1434)  评论(0编辑  收藏  举报
编辑推荐:
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
阅读排行:
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)
千山鸟飞绝,万径人踪灭
点击右上角即可分享
微信分享提示