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()}")