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


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

Re: f-string Formatanweisung

From ruppert@hs-worms.de
Newsgroups de.comp.lang.python
Subject Re: f-string Formatanweisung
Date 2020-06-22 13:28 +0000
Organization A noiseless patient Spider
Message-ID <rcqbm2$4n9$2@dont-email.me> (permalink)
References <rcq1j2$5b5$1@dont-email.me> <rcqa6s$u49$1@gwaiyur.mb-net.net>

Show all headers | 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 | 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