擅长:python、mysql、java
<p>我刚刚在macbook Mojave上使用Python3.7运行了您的代码,在一个位置得到了一个红色矩形(就像您的代码指定的那样)。可能尝试重新启动您的计算机,检查您的python版本,或者重命名该文件(最初我将该文件命名为pygame,它给我带来了一系列问题),使其运行正确的东西。
<a href="https://i.stack.imgur.com/xxlqq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xxlqq.png" alt="enter image description here"/></a>
<a href="https://i.stack.imgur.com/MBC3U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MBC3U.png" alt="enter image description here"/></a></p>