PS F:\python\python2021> python -u "f:\python\python2021\python_gui\pygame1.py"
pygame 2.0.1 (SDL 2.0.14, Python 3.7.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "f:\python\python2021\python_gui\pygame1.py", line 14, in <module>
image = pygame.image.load(img)
FileNotFoundError: No such file or directory.
这是VSCode吧······之前我也遇到过类似的问题
VSCode默认打开的这个文件夹为./