Working with ASCII Character Codes in Python 3

Working with ASCII Character Codes in Python 3

World Class Tech Ed

10 лет назад

43,086 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Escape Felicity
Escape Felicity - 28.12.2021 17:58

well done!

Ответить
Muslim Coder
Muslim Coder - 15.04.2021 13:17

Well explained Mam. God bless you ❤️😊

Ответить
Upcycle Electronics
Upcycle Electronics - 25.04.2020 22:44

Numbers lower than 33 are control characters. New line feed/carriage return, tab, escape, etc. are all down there as are some more obscure functions like "Control Device (1-4)." My current microcontroller project uses \033 and \017, (octal-base number ascii references) for escape and to control device 1.
As an aside, UART serial communication with a microcontroller and a host terminal is one place where the conversion of bytes and characters is required in practice. Python 2.x was much easier to use with it's default UTF-8 encoding/decoding.

Ответить
Rubbernecker
Rubbernecker - 10.03.2020 03:56

Great video, very well explained.

Ответить
Ashikur Rahaman
Ashikur Rahaman - 10.11.2019 22:17

Nice👌

Ответить
H Stevens
H Stevens - 04.11.2019 07:18

Chr(32). Is a ‘space’

Ответить
Gradient Descent
Gradient Descent - 17.07.2019 21:38

No the ascii character codes range from 32, which is space to 126. Not 33 to 126

Ответить
Levon Yeghiazaryan
Levon Yeghiazaryan - 20.05.2019 11:28

What does timesleep(1) ? and why exactly 1?

Ответить
hasan basri Akçay
hasan basri Akçay - 11.01.2019 12:51

what about greater numbers. Like 150?

Ответить
Ardian Kuci
Ardian Kuci - 29.10.2018 15:41

very helpful chris brown

Ответить
Ambika Koushik
Ambika Koushik - 31.01.2018 07:34

That was very helpful. Can you please write a program to take each character from a text file and get their binary value and save that in a new file.

Ответить
sofia wu
sofia wu - 07.11.2017 23:15

I just watch this video today, is really helpful, thank you so much.

Ответить
Meago
Meago - 20.03.2014 23:36

Informative!

Ответить