Why does Python `f-string` + inline for loop create a generator when they're passed as parameter?

前端 未结 0 974
长情又很酷
长情又很酷 2020-12-03 03:53

I found this example on the internet

def format_attributes(**attributes):
    """Return a string of comm         


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