请你问你有什么自己的思路?
x={"math":200, "chinese":202, "english":203}x["chemist"]=205x["math"]=201x.pop("biology","not exist")for key,value in sorted(x.items()):print(f"{key}:{value}",sep="\n" )