python 读取和写入剪贴板

import pyperclip


pyperclip.copy('The text to be copied to the clipboard.')
pyperclip.paste()   # 'The text to be copied to the clipboard.'
print(f"我是复制的内容:{pyperclip.paste()}")
posted @ 2022-02-17 16:21  向前、向前  阅读(376)  评论(0编辑  收藏  举报