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

 

posted @ 2019-02-11 20:59  anobscureretreat  阅读(603)  评论(5编辑  收藏  举报