[我在youtube上观看了一个创建python键盘记录器的视频。我不明白为什么,当我运行它时,它没有写在专门创建的file.txt中。没有编译错误或其他任何错误。我不认为缺少一个库...该程序可以工作,但它不会写在file.txt中。为什么?一切都在同一个路径中,我使用Windows 10。
(实际上,他在终端上写了我按键盘上的字母,但他也应该在file.txt上写它们)
我删除并重新创建了file.txt,现在我有一个新的编译错误: