python3 使用pyperclip读写剪贴板(windows)

import pyperclip

dd=pyperclip.paste()
print(dd)

pyperclip.copy("docs.python.org")
print(pyperclip.paste())

pyperclip.copy("hello")
print(pyperclip.paste())

输出

hello
docs.python.org
hello
原文地址:https://www.cnblogs.com/sea-stream/p/10363166.html