Am 03.07.24 um 11:14 schrieb Hartmut Goebel:
Am 02.07.24 um 20:56 schrieb Andreas Röhler:
print("zaehler: {}".format(zaehler))
Immer wieder sehe ich diese unnötigen und ineffizienten
String-Formatierungen bei "print".
print("zaehler:", zaehler)
tut genau das gleiche.
Und wie
muster="<tr><td>Vorname:{}</td><td>Nachname:{}</td>\n"
f.write(muster.format("Hans","Müller")
f.write(muster.format("Lisa","Maier" )
..
handhaben?
--
<http://www.hermann-riemann.de>
_______________________________________________
python-de Mailingliste -- python-de@python.org
Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an
python-de-le...@python.org
https://mail.python.org/mailman3/lists/python-de.python.org/
Mitgliedsadresse: arch...@mail-archive.com