multiple key value pairs in dict comprehension

前端 未结 0 662
感情败类
感情败类 2021-02-12 04:46

I am trying to create multiple key : value pairs in a dict comprehension like this:

{\'ID\': (e[0]), \'post_author\': (e[1]) for e in wp_users}

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