Is it possible to use methods inside f-strings?

后端 未结 0 1803
生来不讨喜
生来不讨喜 2021-02-04 01:28

i\'m playing around with sorting a list in different ways and had no problems until I decided to try and write it in a single line using the sort() method inside an f-string:

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