用pyperclip 模块拷贝粘贴字符串 >>> import pyperclip>>> pyperclip.copy('Hello world!')>>> pyperclip.paste()'Hello world!'