Python 从剪贴板中生成二维码
准备工作
安装依赖: pip install pyperclip qrcode Pillow
import pyperclip
import qrcode
clipboard_content = pyperclip.paste()
print(clipboard_content)
img = qrcode.make(clipboard_content)
img.show()
安装依赖: pip install pyperclip qrcode Pillow
import pyperclip
import qrcode
clipboard_content = pyperclip.paste()
print(clipboard_content)
img = qrcode.make(clipboard_content)
img.show()