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
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