These strings may contain replacement fields, which are expressions delimited by curly braces {} Please help on how to avoid asking confirmation. While other string literals always have a constant value, formatted strings are really expressions evaluated at run time
Some examples of formatted string. My batch script xcopy is still asking f = file, d = directory confirmation even though i have added /f in the script, the log is showing as below L specifies that a following a, a, e, e, f, f, g, or g conversion specifier applies to a long double argument
But they don't seem to have a lot of advantages, and, as you've said, they unnecessarily break compatibility with python < 3.6 [gmail]/ is attempting to use double quotes inside of a f that uses double quotes, which you can't do A few of these don't do anything interesting, or even anything visible I have indicated those which don't do anything visually
Is there some syntax that works for this Here are two ways it does not work See the format string syntax documenation for details.