我无法在file.txt python上书写

问题描述 投票:0回答:1

enter image description here

[我在youtube上观看了一个创建python键盘记录器的视频。我不明白为什么,当我运行它时,它没有写在专门创建的file.txt中。没有编译错误或其他任何错误。我不认为缺少一个库...该程序可以工作,但它不会写在file.txt中。为什么?一切都在同一个路径中,我使用Windows 10。

(实际上,他在终端上写了我按键盘上的字母,但他也应该在file.txt上写它们)

python pycharm windows-10 keylogger pynput
1个回答
0
投票

我删除并重新创建了file.txt,现在我有一个新的编译错误:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.