Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== ASCII ====== * Codierung von lateinischen Buchstaben und einigen Symbolen * [[https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html|ASCII Tabelle]] <WRAP todo> Dekodieren Sie den Text im Logo: {{:lehrkraefte:blc:informatik:glf24:pasted:20250117-154401.png}} </WRAP> ===== Python ===== Anstatt in der Tabelle nachschauen, kann auch die Python-Konsole verwendet werden: <code python> ord("A") # liefert 65 </code> Oder umgekehrt: <code python> chr(65) # liefert 'A' </code> Auch die Eingabe in binär oder hexadezimal ist möglich: <code python> chr(0b101010) # ASCII 42, liefert '*' chr(0x23) # ASCII 35, liefert '#' </code> ====== Unicode ====== Finden Sie die Unicode-Nummerierung von anderen speziellen Symbolen, wie z.B. Emoties oder anderen Symbolen. ==== List comprehensions ==== <code python> [ord(c) for c in "Hellö!"] l = [chr(c) for c in [73, 32, 10084, 65039, 32, 127464, 127469]] l "".join(l) </code> lehrkraefte/blc/informatik/glf24/characters.txt Last modified: 2025/01/21 10:32by Ivo Blöchliger