# 字典解析式
tmp = {x:(x, x+1) for x in range(10)}
print(tmp)

tmp = {x:[x, x+1] for x in range(10)}
print(tmp)

相关文章: