Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5649
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | ruppert@hs-worms.de |
| Newsgroups | de.comp.lang.python |
| Subject | Re: f-string Formatanweisung |
| Date | Mon, 22 Jun 2020 13:28:36 -0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 30 |
| Message-ID | <rcqbm2$4n9$2@dont-email.me> (permalink) |
| References | <rcq1j2$5b5$1@dont-email.me> <rcqa6s$u49$1@gwaiyur.mb-net.net> |
| Reply-To | ruppert@hs-worms.de |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Mon, 22 Jun 2020 13:28:36 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="35d033fccaeb030a30e4ea7b7d5ed05d"; logging-data="4841"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DhSPMavMqzERKf6fJEJPj" |
| User-Agent | tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-6-amd64 (x86_64)) |
| Cancel-Lock | sha1:woh5EAEg2E8qeXcp9vBkBmcl1CE= |
| Xref | csiph.com de.comp.lang.python:5649 |
Show key headers only | View raw
Andreas B. <ab@sysing.de> wrote: > Am 22.06.2020 um 12:36 schrieb ruppert@hs-worms.de: >> das unten befindliche Programm funktioniert mit f-String-Formatierung >> nicht so, wie ich das erwarte. Wenn ich das F-String-Format, das ich >> haben möchte, zuerst als Striing formatiere (s), sieht es richtig aus. >> >> Aber bei print(s) wird nicht das in s steckende f-string-Format >> interpretiert, sonde > > ... > >> #!/usr/bin/python3 >> import sys >> if(len(sys.argv)<2): > ... > > Ähm, welches /usr/bin/python3? die F-Strings gibt es erst seit Python > 3.6. Läuft da vielleicht ein älteres Dreier-Python? python 3.7.3 aus debian stable > > Grüße, > A.B. > Grüße M.Ruppert -- ruppert@hs-worms.de
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
f-string Formatanweisung ruppert@hs-worms.de - 2020-06-22 10:36 +0000
Re: [Python-de] f-string Formatanweisung Mike Müller <mmueller@python-academy.de> - 2020-06-22 14:27 +0200
Re: [Python-de] f-string Formatanweisung Mike Müller <mmueller@python-academy.de> - 2020-06-22 14:31 +0200
Re: [Python-de] f-string Formatanweisung ruppert@hs-worms.de - 2020-06-22 13:22 +0000
Re: [Python-de] f-string Formatanweisung Stefan Behnel <python-de@behnel.de> - 2020-06-22 14:55 +0200
Re: f-string Formatanweisung "Andreas B." <ab@sysing.de> - 2020-06-22 15:03 +0200
Re: f-string Formatanweisung ruppert@hs-worms.de - 2020-06-22 13:28 +0000
Re: [Python-de] f-string Formatanweisung Stefan Behnel <python-de@behnel.de> - 2020-06-22 15:14 +0200
Re: [Python-de] f-string Formatanweisung ruppert@hs-worms.de - 2020-06-22 14:03 +0000
Re: [Python-de] f-string Formatanweisung ruppert@hs-worms.de - 2020-07-13 11:13 +0000
csiph-web