我刚开始用python编写代码,每次我运行它的时候,它都会显示_tkinter.TclError: couldn't open "Island1.png": no such file or directory这就是我得到的: from tkinter import * #Import tkinter and oswindow.titleos.path.abspath(__file__)
scriptdir
我试图打开一个外部文件,其中包含tkinter的样式选项,但由于某种原因,它说该文件找不到。下面是完整的回溯: File "C:/Users/stjur/Desktop/STYLING.py", line 5, in <init__.py", line 871, in option_readfile
self.tk.call('option
我刚开始使用代码运行器在vscode中编码并尝试运行python代码,但它不起作用,我认为问题是代码运行器运行C:/c/-这在我的目录中不存在,但我不知道如何解决它。screenshot of terminal when I try to run 终端中的代码: PS C:\Users\Kevin> python -u "/c/Users/Kevin/Desktop