📜  python 字典理解 - Python 代码示例

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

代码示例6
>>> {x: x**2 for x in (2, 4, 6)}
{2: 4, 4: 16, 6: 36}