【发布时间】:2020-06-27 19:03:49
【问题描述】:
我正在构建一个Encrypter/Decrypter,并且我已经让后端工作了。要encrypt or decrypt a file,您需要input the name and the extension (Example: Image.png)。
如果您输入的文件名不存在或有错字,控制台会打印:
FileNotFoundError: [Errno 2] No such file or directory:
继续您的输入文本。
我想要做的就像一个 If(控制台打印该错误消息),然后使用 Tkinter 显示一个说 "No file found. Please check your directory or your spelling" 的文本。
请帮助我,以便我完成这个项目。
【问题讨论】:
-
代码在哪里?
标签: python debugging tkinter console