截图文件夹和脚本
BIN
ChatGPT模型架构与简介/screenshot_20241207_142631.png
Normal file
|
After Width: | Height: | Size: 172 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142636.png
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142642.png
Normal file
|
After Width: | Height: | Size: 156 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142647.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142649.png
Normal file
|
After Width: | Height: | Size: 157 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142653.png
Normal file
|
After Width: | Height: | Size: 167 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142656.png
Normal file
|
After Width: | Height: | Size: 158 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142659.png
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142703.png
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
ChatGPT模型架构与简介/screenshot_20241207_142705.png
Normal file
|
After Width: | Height: | Size: 118 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_1.png
Normal file
|
After Width: | Height: | Size: 133 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_10.png
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_11.png
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_12.png
Normal file
|
After Width: | Height: | Size: 268 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_13.png
Normal file
|
After Width: | Height: | Size: 326 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_14.png
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_15.png
Normal file
|
After Width: | Height: | Size: 165 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_16.png
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_17.png
Normal file
|
After Width: | Height: | Size: 240 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_18.png
Normal file
|
After Width: | Height: | Size: 237 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_19.png
Normal file
|
After Width: | Height: | Size: 165 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_2.png
Normal file
|
After Width: | Height: | Size: 171 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_3.png
Normal file
|
After Width: | Height: | Size: 172 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_4.png
Normal file
|
After Width: | Height: | Size: 185 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_5.png
Normal file
|
After Width: | Height: | Size: 200 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_6.png
Normal file
|
After Width: | Height: | Size: 220 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_7.png
Normal file
|
After Width: | Height: | Size: 216 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_8.png
Normal file
|
After Width: | Height: | Size: 171 KiB |
BIN
互联网信息服务深度合成管理规定/screenshot_9.png
Normal file
|
After Width: | Height: | Size: 226 KiB |
80
截屏幕文件.py
Normal file
@@ -0,0 +1,80 @@
|
||||
import tkinter as tk
|
||||
from tkinter import simpledialog
|
||||
import pyautogui
|
||||
import keyboard
|
||||
import os
|
||||
|
||||
# 全局变量,用于存储文件夹路径
|
||||
save_folder = ""
|
||||
|
||||
|
||||
# 创建状态显示窗口
|
||||
def create_status_window():
|
||||
window = tk.Tk()
|
||||
window.title("截图工具状态")
|
||||
window.geometry("200x100")
|
||||
window_position = f"+{window.winfo_screenwidth() - 220}+{window.winfo_screenheight() - 150}"
|
||||
window.geometry(window_position)
|
||||
# 设置窗口始终在最前面
|
||||
window.attributes('-topmost', True)
|
||||
|
||||
label = tk.Label(window, text="", font=("Arial", 12))
|
||||
label.pack(expand=True)
|
||||
|
||||
return window, label
|
||||
|
||||
|
||||
# 更新状态信息
|
||||
def update_status(label, text):
|
||||
label.config(text=text)
|
||||
label.update()
|
||||
|
||||
|
||||
# 创建文件夹
|
||||
def create_folder():
|
||||
global save_folder
|
||||
root = tk.Tk()
|
||||
root.withdraw() # 隐藏主窗口
|
||||
folder_name = simpledialog.askstring("输入", "请输入文件夹名称:", parent=root)
|
||||
if folder_name:
|
||||
save_folder = os.path.join(os.getcwd(), folder_name)
|
||||
if not os.path.exists(save_folder):
|
||||
os.makedirs(save_folder)
|
||||
update_status(status_label, "文件夹创建成功")
|
||||
else:
|
||||
update_status(status_label, "文件夹已存在")
|
||||
root.destroy()
|
||||
|
||||
|
||||
# 截屏并保存
|
||||
def take_screenshot():
|
||||
if not save_folder:
|
||||
update_status(status_label, "请先创建文件夹")
|
||||
return
|
||||
|
||||
screen_width, screen_height = pyautogui.size()
|
||||
left = screen_width // 2 - 400
|
||||
top = 0
|
||||
right = screen_width // 2 + 400
|
||||
bottom = screen_height
|
||||
|
||||
screenshot = pyautogui.screenshot(region=(left, top, right - left, bottom - top))
|
||||
file_path = os.path.join(save_folder, f"screenshot_{len(os.listdir(save_folder)) + 1}.png")
|
||||
screenshot.save(file_path)
|
||||
update_status(status_label, "截图成功")
|
||||
|
||||
|
||||
# 主函数
|
||||
def main():
|
||||
global status_window, status_label
|
||||
status_window, status_label = create_status_window()
|
||||
|
||||
keyboard.add_hotkey('F8', create_folder)
|
||||
keyboard.add_hotkey('F9', take_screenshot)
|
||||
|
||||
update_status(status_label, " ready")
|
||||
status_window.mainloop()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
BIN
生成式人工智能背景介绍/screenshot_20241207_133729.png
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133734.png
Normal file
|
After Width: | Height: | Size: 247 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133824.png
Normal file
|
After Width: | Height: | Size: 198 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133831.png
Normal file
|
After Width: | Height: | Size: 222 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133834.png
Normal file
|
After Width: | Height: | Size: 261 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133837.png
Normal file
|
After Width: | Height: | Size: 227 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133840.png
Normal file
|
After Width: | Height: | Size: 246 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133843.png
Normal file
|
After Width: | Height: | Size: 286 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133846.png
Normal file
|
After Width: | Height: | Size: 260 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133849.png
Normal file
|
After Width: | Height: | Size: 251 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133853.png
Normal file
|
After Width: | Height: | Size: 248 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133856.png
Normal file
|
After Width: | Height: | Size: 258 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133858.png
Normal file
|
After Width: | Height: | Size: 258 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133901.png
Normal file
|
After Width: | Height: | Size: 259 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133904.png
Normal file
|
After Width: | Height: | Size: 260 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133907.png
Normal file
|
After Width: | Height: | Size: 254 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133909.png
Normal file
|
After Width: | Height: | Size: 259 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133912.png
Normal file
|
After Width: | Height: | Size: 272 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133914.png
Normal file
|
After Width: | Height: | Size: 251 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133917.png
Normal file
|
After Width: | Height: | Size: 271 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133920.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133923.png
Normal file
|
After Width: | Height: | Size: 203 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133926.png
Normal file
|
After Width: | Height: | Size: 183 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133929.png
Normal file
|
After Width: | Height: | Size: 208 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133930.png
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133933.png
Normal file
|
After Width: | Height: | Size: 172 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133935.png
Normal file
|
After Width: | Height: | Size: 202 KiB |
BIN
生成式人工智能背景介绍/screenshot_20241207_133938.png
Normal file
|
After Width: | Height: | Size: 34 KiB |