擅长:python、mysql、java
<p>您不需要在那里使用<code>newdict</code>,您只需使用<code>items</code>获取姓名和薪水,然后打印这两个值加上增加的值。我将其更改为使用新的字符串格式语法,因为旧的<code>%</code>样式已经不再使用:</p>
<pre><code>for employee, salary in employeeDatabase.items():
print ("{}, your current salary is {:.2f}. You received a 2% raise. This makes your new salary {:.2f}".format(employee, salary, salary * 1.02))
</code></pre>