Python - Dictionary dict comprehension

后端 未结 0 896
眼角桃花
眼角桃花 2020-11-21 05:08

I want to replace the first element of each list in the dictionary with a function f. want my_dictionary ={1:[\'function\',\'b\',\'c\'],2:[\'function\',\'e\',\'f\']}

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