Browse Source

Update 'README.md'

天问 1 month ago
parent
commit
6fc88c6738
1 changed files with 20 additions and 1 deletions
  1. 20 1
      README.md

+ 20 - 1
README.md

@@ -1,3 +1,22 @@
 # pyperclip
 
-跨平台复制粘贴文本,二进制数据,实现自动化操作
+跨平台复制粘贴文本,二进制数据,实现自动化操作
+
+## Usage
+
+```
+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.'
+
+
+
+
+```