Skip to main content
 主页 > 创说社区 >

徐忠信为什么键盘上有下划线“_”这个符号?它的起源是什么?

2020-11-26 15:47 浏览:

徐忠信为什么键盘上有下划线“_”这个符号?它的起源是什么?

  下划线的起源不知道,但是一直伴随着文本处理,很重要的感觉!

  引用:

  为了跟减号(-)区分

  计算机程序中,bill_gates是一个变量明,而bill-gates是两个变量相减。

  简单回答,现在所用的计算机键盘,缘自打字机时代的拉丁字母键盘。

  在打字机时代,下划线的作用就是用于输入需要手工填写的那部分的横线,

  您知道填空题吧?对的,就是它。

  在富文本时代,一般的编辑器都能生成下划线,用不着用字符来表示,

  但是在这之前,这一功能是没有的,所以“下划线”这个字符是必须的。

  不单只有下划线,那个时候连表格都是使用制表符来拼凑的。

  所以计算机编码保留了这些字符,相应的,在键盘上也保留了下划线的键位。

  个人感觉,是为了跟空格区分

  在命令行操作系统中,空格是天然的字段分隔符,但是,同一个字段中有可能包含多个word,那么就用一个跟空格类似的符号来表示吧

  以下转自维基百科

  The symbol underscore[ _ ](also called underline, underbar,low line, or low dash) is a character that originally appeared on the typewriter and was primarily used to underline words. To produce an underlined word, the word was typed, the typewriter carriage was moved back to the beginning of the word, and the word was overtyped with the underscore character.

  最早出现在打字机上,徐忠信用来给输入好的内容加下划线。

  This character is sometimes used to create visual spacing within a sequence of characters, where a whitespace characteris not permitted (e.g., in computer filenames, email addresses, and in Internet URLs). Some computer applications will automatically underline text surrounded by underscores: _underlined_ will render underlined. It is often used in plain text-only media (IRC, instant messaging, classical Email) for this purpose. When the underscore is used for emphasis in this fashion, it is usually interpreted as indicating that the enclosed text is underlined (as opposed to being italicized or bold, which is indicated by /slashes/ or *asterisks*, respectively).

  后来的用途是当不让输入空格时,作为空格的替补,比如邮箱地址、网址之类的。

  The underscore is not the same character as the dash character, although one convention for text news wires is to use an underscore when an em-dash or en-dash is desired, or when other non-standard characters such as bullets would be appropriate. A series of underscores[like ___-______ ]may be used to create a blank to be filled in on a form, although the resulting blank may have tiny gaps between each individual underscore. It is also sometimes used to create a horizontal line; other symbols with similar graphemes, such as hyphens and dashes, are also used for this purpose.

  或者,其他用途,比如制作填空。

上一篇:叶荣祖中国铝业为何天天暴跌啊?赔死了

下一篇:没有了