python 字典推导公式

{key: value for (key, value) in iterable}
print({key:value for key,value in enumerate("qwdfsdf")})

你可能感兴趣的:(python)