roots={x**2:x for x in range(5,0,-1)}
print(roots)
#{25: 5, 16: 4, 9: 3, 4: 2, 1: 1}

 

相关文章: