Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Hartmut Goebel Newsgroups: de.comp.lang.python Subject: Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel Date: Wed, 19 Jun 2019 14:08:33 +0200 Organization: Goebel Consult Lines: 51 Message-ID: References: <1825444.o0KX4FVeTt@host> <2735687.t9uVyT51e0@host> <9390763f-1e2a-fb62-50ed-6b776764aec9@goebel-consult.de> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms020900020105020003090706" X-Trace: news.uni-berlin.de VnFMK8gaGcyYt76N9z7gAwvEryTjEXIS2r0hGtMe2vPg== Return-Path: X-Original-To: python-de@python.org Delivered-To: python-de@mail.python.org X-Virus-Scanned: amavisd-new at mnet-online.de Openpgp: preference=signencrypt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 In-Reply-To: <2735687.t9uVyT51e0@host> X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Die Deutsche Python Mailingliste List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <9390763f-1e2a-fb62-50ed-6b776764aec9@goebel-consult.de> X-Mailman-Original-References: <1825444.o0KX4FVeTt@host> <2735687.t9uVyT51e0@host> Xref: csiph.com de.comp.lang.python:5493 This is a cryptographically signed message in MIME format. --------------ms020900020105020003090706 Content-Type: multipart/mixed; boundary="------------ED59094ABC046CB43A4CE9EE" Content-Language: de-DE This is a multi-part message in MIME format. --------------ED59094ABC046CB43A4CE9EE Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am 18.06.19 um 22:53 schrieb eilfh: > for i in range(1, spalten_anzahl + 1): Nur eine kleine Anmerkung: Nachdem Du unten dann immer "i-1" verwendest, kannst Du hier "range(spalten_anzahl)" verwenden. Das l=C3=A4uft von 0 und bis spalten_anzahl-1, liefert also alle Indexe f=C3=BCr die Element in der Li= ste. Analog f=C3=BCr j. Der Code wird damit einfacher und klarer zu lesen: "Ah, das ist eine Schleife =C3=BCber alle Element der Matrix". --=20 Sch=C3=B6nen Gru=C3=9F Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer Information Security Management, Security Governance, Secure Software Development Goebel Consult, Landshut http://www.goebel-consult.de Blog: https://www.goe-con.de/blog/bin-offiziell-entdecker-einer-sicherheitsluck= e Kolumne: https://www.goe-con.de/hartmut-goebel/cissp-gefluester/2010-01-hinterture= n-allen-ortes-1 --------------ED59094ABC046CB43A4CE9EE-- --------------ms020900020105020003090706--