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

  • 相关阅读:
    poj 1200 crasy search
    cdoj 1092 韩爷的梦
    fzu 2257 saya的小熊饼干
    zoj 3950 how many nines
    zoj 3963 heap partion
    fzu 2256 迷宫
    fzu 2253 salty fish
    hdu 2473 Junk-Mail Filter
    codeforces 129B students and shoes
    hdu 3367 Pseudoforest
  • 原文地址:https://www.cnblogs.com/lightsong/p/7732599.html
Copyright © 2020-2023  润新知