Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > de.comp.lang.python > #6117
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "Wolli Buechel" <wjb131@web.de> |
| Newsgroups | de.comp.lang.python |
| Subject | [Python-de] Re: Keyboard coding |
| Date | Fri, 19 Jul 2024 17:50:01 -0000 |
| Lines | 32 |
| Message-ID | <172141140104.2219.9219777768208442096@mail.python.org> (permalink) |
| References | <0989553E-D580-476C-95DF-4C4E8CD3FDE8@multi-matrix.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de V2W4nmMwW+7Zk/n6pRj3cwnGBlbQLxJHh9xyV6ywmU0w== |
| Cancel-Lock | sha1:zqTzZorupaj2Sg5Azwtfpv9+Gu4= sha256:wx/a5DDf694rWl/+dE0AjeeShMQIyvudxdw8WaLdoTU= |
| Authentication-Results | mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral |
| In-Reply-To | <0989553E-D580-476C-95DF-4C4E8CD3FDE8@multi-matrix.de> |
| User-Agent | HyperKitty on https://mail.python.org/ |
| Message-ID-Hash | T2MSKW3VW27DSRSFBIUR6J5XHXD4LV3Y |
| X-Message-ID-Hash | T2MSKW3VW27DSRSFBIUR6J5XHXD4LV3Y |
| X-MailFrom | wjb131@web.de |
| X-Mailman-Rule-Misses | dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-python-de.python.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header |
| X-Mailman-Version | 3.3.10b1 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| Archived-At | <https://mail.python.org/archives/list/python-de@python.org/message/T2MSKW3VW27DSRSFBIUR6J5XHXD4LV3Y/> |
| List-Archive | <https://mail.python.org/archives/list/python-de@python.org/> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Owner | <mailto:python-de-owner@python.org> |
| List-Post | <mailto:python-de@python.org> |
| List-Subscribe | <mailto:python-de-join@python.org> |
| List-Unsubscribe | <mailto:python-de-leave@python.org> |
| Xref | csiph.com de.comp.lang.python:6117 |
Show key headers only | View raw
Hallo Herr Schnoor,
> Das Zahlensystem zur Basis 4096 besteht aus folgenden 4096 Ziffern:
>
> ziffern = """123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ
> ÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġ
...
> ㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ᧠᧡᧢᧣᧤᧥᧦᧧᧨᧩᧭᧯ᲐᲑᲒᲓᲔᲕᲖᲗᲘᲙᲚᲛᲜᲝᲞᲟᲠᲡᲢᲣᱪᱫᱬᱭ
> ㄪㄫꆰꆱꆲꆳꆴꆵꆶꆷꆸꆹꆺꆻꆼꆽꆾꆿꇀꇁꇂꇃꇄꇅꇆꇇꇈꇉꇊꇋꇌꇍꇎꇏꇐꇑꇒꇓꇔꇕꇖꇗꇘꇙꇚꇛꇜꇝꇞꇟꇠꇡꇢꇣꇤꇥꇦꇧꇨꇩꇪꇫꇬꇭꇮꇯꇰꇱꇲꇳꇴꇵꇶꇷꇸꇹ"""
Ein Ziffernstring eines Zahlensystems zur Basis b enthält b VERSCHIEDENE
DRUCKBARE Zeichen. Ausgeschlossen sind somit whitespace-Zeichen (Tabulatoren, Zeilenumbrüche,
Leerzeichen) und Steuerzeichen.
Ihr Mehrzeilenstring <ziffern> erfüllt diese elementaren Anforderungen nicht.
Er enthält fast 70 Zeichen mehrfach, darunter 56 Zeilenumbrüche und ein Leerzeichen.
Dies sieht man so:
z = ziffern
num1 = len(z)
num2 = len(set(z)) # set(z) = Menge der Zeichen in z
print(num1, num2, num1 - num2) # >> 4115 3983 132
mehrfach = sorted( set( [ x for x in z if (z.count(x) > 1 or x in "\t\n ") ] ) )
for i, ch in enumerate(mehrfach):
print("[%d] >%s< %6d (%d-mal)" % (i+1, ch, ord(ch), z.count(ch)))
Da müsste nachgebessert werden.
W. Buechel
Back to de.comp.lang.python | Previous | Next — Next in thread | Find similar
[Python-de] Re: Keyboard coding "Wolli Buechel" <wjb131@web.de> - 2024-07-19 17:50 +0000
[Python-de] Fwd: Keyboard coding Erich Schnoor <eschnoor@multi-matrix.de> - 2024-07-20 11:25 +0200
[Python-de] Re: Fwd: Keyboard coding "Wolli Buechel" <wjb131@web.de> - 2024-07-20 14:15 +0000
csiph-web