📜  python 创建带键的空字典 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:16.139000             🧑  作者: Mango

代码示例1
>>> keys = [1,2,3,5,6,7]
>>> {key: None for key in keys}
{1: None, 2: None, 3: None, 5: None, 6: None, 7: None}