info_dict={"王力宏":{"部门":"科技部","工资":3000,"级别":1},"周杰伦":{"部门":"市场部","工资":5000,"级别":2},"张学友":{"部门":"科技部","工资":7000,"级别":1},"刘德华":{"部门":"科技部","工资":3000,"级别":2}}for name in info_dict:if info_dict[name]["级别"]==1:
emplpyee_info_dict=info_dict[name]
emplpyee_info_dict["级别"]==2
emplpyee_info_dict["工资"]+=1000
info_dict[name]=emplpyee_info_dict
print(f"员工在升职加薪后结果{info_dict}")