如果我执行这段代码,它工作得很好。但是,如果我使用键盘(Ctrl+ C)复制某些内容,那么如何将剪贴板上的文本粘贴到Python中的任何输入框或文本框中?
import pyperclip pyperclip.copy('The text to be copied to the clipboard.') spam = pyperclip.paste()
python tkinter python-3.x pyperclip tkinter-entry
pyperclip ×1
python ×1
python-3.x ×1
tkinter ×1
tkinter-entry ×1