例如,假设我的输入是:
a = dict() a['one']=1 a['two']=2
我希望我的输出是:
{1: 'one', 2: 'two'}
res = dict() res[1] = 'one' res[2] = 'two'