abc = ['a', 'b', 'c']dc = {i: 0 for i in abc}print(dc)# 输出{'a': 0, 'b': 0, 'c': 0}
abc = ['a', 'b', 'c']
dc = {i: 0 for i in abc}
print(dc)
# 输出
{'a': 0, 'b': 0, 'c': 0}
若有收获,就点个赞吧
0 人点赞
让时间为你证明