Python and Unicode characters

preview_player
Показать описание
What is Unicode? How can we insert Unicode characters into strings? What's the difference between \x, \u, and \U? How can we insert characters with their names?

In this video, I answer these and many other questions about Unicode and Python characters.

Рекомендации по теме
Комментарии
Автор

The only place where this is very well explained! Thumbs UP!

pauloalmeida
Автор

That's a sub from me!! Great video. Every few seconds is another great tidbit

JoshPaulie
Автор

Counting on your fingers in base 16 is easier than in base 10.
Where in base 10 you need both your hands, in base 16 you need one. Have your thumb point at each phalanges of the other 4 fingers and it's base 12, add your finger tips or nails and it's base 16... add both and its base 20. I'm pretty sure that mastering that when you're learning to count would help ease that infamous math allergy a lot of people get when they start to learn the fundamentals of algebra at 5/6yo as it can trivialize the simplest additions, substractions and divisions.

Kai_Ning
Автор

In my Python.kv File i wanted to show a button with a Symbol, but nothing works and it seems, that the kv-file is not connected with the imported library unicodedata. Also chr and /U"20103" does not work in a kivy *.kv file and i can use it only in the python main.py.

Button:
text: '\N{CJK UNIFIED IDEOGRAPH-4E2D}' # This doesn't work

Do you have an idea?

zqgpjbz
Автор

Hello Reuven, may i ask you something; if i define two string with the same content(a=«hello», b=«hello»)
, it will give me the same id for both, but not if there is a space in it, which is very weird as space is in the ascii table, i noticed when using foreign character the id is always different not as with Latin character.
Ive noticed very weird behavior when experimenting with object id this week some real non-sense, i would be interested to read about it if you have something to recommend me, if there is some python implementation as i dont code in C. Thank you, have a great day

obed
Автор

hello, I would like to replace LEFT (and right) SINGLE QUOTATION MARK ‘ ’ by APOSTROPHE ' in python. Also RIGHT DOUBLE QUOTATION MARK “ ”(and left) by QUOTATION MARK " . Anybody knows how please? I want to write them to text file from imported request.

iiannRB