liuyuqi-dellpc 61aecd3345 0 | 7 months ago | |
---|---|---|
README.md | 10 months ago | |
main.py | 7 months ago | |
requirements.txt | 7 months ago |
跨平台复制粘贴文本,二进制数据,实现自动化操作
pip install pyperclip
import pyperclip
# 复制文本到剪贴板
pyperclip.copy('The text to be copied to the clipboard.')
# 从剪贴板粘贴文本
pasted_text = pyperclip.paste()
print(pasted_text) # 输出:'The text to be copied to the clipboard.'