将文本写入剪切板 import pyperclip pyperclip.copy('北巷的猫') # 只支持字符串类型 从剪切板读取文本 # pandas import pandas as pd df = pd.read_clipboard() df 北巷的猫 # pyperclip