|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- Exception in Tkinter callback
- Traceback (most recent call last):
- File "c:\Users\h_qiy\AppData\Local\Programs\Python\Python313\Lib\tkinter\__init__.py", line 2068, in __call__
- return self.func(*args)
- ~~~~~~~~~^^^^^^^
- File "D:\Users\python-user\ImageGrab\main.py", line 12, in get_keys
- if event.keysym == "F1": full_scr(); print("full")
- ~~~~~~~~^^
- File "D:\Users\python-user\ImageGrab\main.py", line 19, in full_scr
- screenshot.save(f"{image_dir}ScreenShot{datetime.now().__str__()}.png")
- ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "c:\Users\h_qiy\AppData\Local\Programs\Python\Python313\Lib\site-packages\PIL\Image.py", line 2583, in save
- fp = builtins.open(filename, "w+b")
- OSError: [Errno 22] Invalid argument: 'D://ImageGrab/ScreenShots/ScreenShot2025-08-24 00:31:28.245790.png'
复制代码 |
|