最佳答案
I'm using the .format() a lot in my Python 3.5 projects, but I'm afraid that it will be deprecated during the next Python versions because of f-strings, the new kind of string literal.
>>> name = "Test"
>>> f"My app name is {name}."
'My app name is Test.'
Does the formatted string feature come to fully replace the old .format()? And from now on, would it be better to use the new style in all cases?
I understand that it's based on the idea that "Simple is better than complex." However, what about performance issues; is there any difference between them? Or is it just a simple look of the same feature?