Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5646

Re: f-string Formatanweisung

From "Andreas B." <ab@sysing.de>
Newsgroups de.comp.lang.python
Subject Re: f-string Formatanweisung
Date 2020-06-22 15:03 +0200
Organization MB-NET.NET for Open-News-Network e.V.
Message-ID <rcqa6s$u49$1@gwaiyur.mb-net.net> (permalink)
References <rcq1j2$5b5$1@dont-email.me>

Show all headers | View raw


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?

Grüße,
  A.B.

Back to de.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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