计算机如何区分二进制中的字母和数字? [英] How do computers differentiate between letters and numbers in binary?

查看:479
本文介绍了计算机如何区分二进制中的字母和数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是好奇,因为65与字母A相同

I was just curious because 65 is the same as the letter A

如果这是错误的堆栈,抱歉.

If this is the wrong stack sorry.

推荐答案

简短答案.他们没有.更长的答案是,在00000000和11111111之间的每个二进制组合在ASCII字符集中都有一个字符表示. 01000001恰好是30年前指定的拉丁字母中的第一个大写字母.还有其他字符集和代表不同字母,数字,不可打印和重音字母的代码页.二进制01000001完全有可能是小写字母z,并且在不同字符集的顶部带有波浪号. 计算机"不知道(或不在乎)特定的二进制表示对人类意味着什么.

Short answer. They don't. Longer answer, every binary combination between 00000000 and 11111111 has a character representation in the ASCII character set. 01000001 just happens to be the first capital letter in the Latin alphabet that was designated over 30 years ago. There are other character sets, and code pages that represent different letter, numbers, non-printable and accented letters. It's entirely possible that the binary 01000001 could be a lower case z with a tilde over the top in a different character set. 'computers' don't know (or care) what a particular binary representation means to humans.

这篇关于计算机如何区分二进制中的字母和数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆