1import clipboard
2clipboard.copy("abc") # now the clipboard content will be string "abc"
3text = clipboard.paste() # text will have the content of clipboard
4
1import pyperclip
2
3pyperclip.copy("your string")
4
5clipboard_content = pyperclip.paste()