Movatterモバイル変換


[0]ホーム

URL:


[Python-ideas] Briefer string format

Greg Ewinggreg.ewing at canterbury.ac.nz
Fri Jul 24 01:40:49 CEST 2015


Steven D'Aprano wrote:> I don't think I want this behaviour:>>     f'{spam}' '{eggs}'>     => format(spam) + '{eggs}'What do you think should happen in this case:    '{spam}' f'{eggs}'It would seem very strange to me if the f infectedstrings *before* it as well as after it.-- Greg


More information about the Python-ideasmailing list

[8]ページ先頭

©2009-2026 Movatter.jp