Why does adding formatting information to a Python f-string with tuple values raise a TypeError?

前端 未结 0 1170
广开言路
广开言路 2021-01-23 23:51

I\'m trying to understand the following behavior of f-strings in Python:

The following line in which the tuple value is converted explicitly via str() works

相关标签:
回答
  • 消灭零回复
提交回复
热议问题