擅长:python、mysql、java
<pre><code>score = int(input(print("Enter", playerName, "'s golf score: ")))
</code></pre>
<p>应改为</p>
^{pr2}$
<p>在python中打开和关闭文件的有效方法如下:</p>
<pre><code>with open("filename", "w") as userFile:
userFile.write(data)
</code></pre>
<p>当循环完成时,使用with open方法将为您关闭文件。在</p>