import pyperclip
import time
last_string = pyperclip.paste()
while True:
# 检测频率
time.sleep(0.2)
string = pyperclip.paste()
if string != last_string and string != '':
print([string])
last_string = string
import pyperclip
import time
last_string = pyperclip.paste()
while True:
# 检测频率
time.sleep(0.2)
string = pyperclip.paste()
if string != last_string and string != '':
print([string])
last_string = string