安装依赖: pip install pyperclip qrcode Pillow
pip install pyperclip qrcode Pillow
import pyperclip import qrcode clipboard_content = pyperclip.paste() print(clipboard_content) img = qrcode.make(clipboard_content) img.show()