Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lehrkraefte:blc:informatik:glf24:characters [2025/01/17 14:44] – created Ivo Blöchliger | lehrkraefte:blc:informatik:glf24:characters [2025/01/21 10:32] (current) – Ivo Blöchliger | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| {{: | {{: | ||
| </ | </ | ||
| + | |||
| + | ===== Python ===== | ||
| + | Anstatt in der Tabelle nachschauen, | ||
| + | <code python> | ||
| + | ord(" | ||
| + | </ | ||
| + | Oder umgekehrt: | ||
| + | <code python> | ||
| + | chr(65) | ||
| + | </ | ||
| + | |||
| + | Auch die Eingabe in binär oder hexadezimal ist möglich: | ||
| + | <code python> | ||
| + | chr(0b101010) | ||
| + | chr(0x23) | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====== 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 " | ||
| + | l = [chr(c) for c in [73, 32, 10084, 65039, 32, 127464, 127469]] | ||
| + | l | ||
| + | "" | ||
| + | |||
| + | </ | ||