Cara secara otomatis menyalin output ke clipboard di Python

import pyperclip
pyperclip.copy('The text to be copied to the clipboard.')
Dabuilda