Python:剪切板的读取&写入

2021-02-11  本文已影响0人  R_zb

前期准备

使用演示

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()}")
我是复制的内容:The text to be copied to the clipboard.

进程已结束,退出代码 0
上一篇 下一篇

猜你喜欢

热点阅读