基本的ascii代码知识 [英] Basic ascii code knowledge

查看:152
本文介绍了基本的ascii代码知识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我今天尝试研究bout ascii代码

i从 获取一些信息第6.6课:如何将数字编码为ASCII中的字符 - YouTube [ ^ ]



i在ascii中有一些关于'flag'的问题



正如本视频中提到的ascii代码中的前3位数字



010代表大写字母

011表示小写字母



所以在这个例子中,我可以假设第3个标志将确定它是大资本或小写字母



i尝试谷歌关于ascii代码如何工作

我发现他们从未解释过'旗'



有人可以简单解释前3位数如何工作



谢谢



我尝试了什么:



ascii代码实际上是如何工作的

hello, i try to study bout ascii code today
i got some information from Lesson 6.6 : How numbers are encoded as characters in ASCII - YouTube[^]

i got some question about 'flag' in ascii

as what has been mention in this video the 1st 3 digits in ascii code

010 represent upper case char
011 represent lower case char

so in this example, i can assume that the 3rd flag will determine it is big capital or small capital letter

i try to google about how ascii code works
mostly i found they never explain about the 'flag'

can someone please make a simple explaination about how the 1st 3 digits work

thank you

What I have tried:

how actually an ascii code works

推荐答案

如果将字母的ascii值转换为二进制,则会看到所有小写字母都以011开头,因此a为01100001,z为01111010,大写字母为010,所以A 是01000001,Z是01011010.



ASCII - 二进制字符表 [ ^ ]



flag表示其中一个单位的位置(可以是0或1)。所以第三个标志意味着左起第三个数字。标志是可以被视为开或关,真或假等的任何东西。
If you convert the ascii value for a letter into binary you'll see all the lower case ones start "011", so "a" is 01100001 and "z" is 01111010, and the upper case with "010" so "A" is 01000001 and "Z" is 01011010.

ASCII - Binary Character Table[^]

By "flag" they mean the position of one of the units (which can be 0 or 1). So third flag means the third digit from the left. A flag is anything that can be considered on or off, true or false etc.


这篇关于基本的ascii代码知识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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