sairate 7df250638d chore: 添加项目基础结构和示例代码
- 创建 .idea 目录和相关配置文件,设置项目结构
- 添加多个课堂成果示例代码,涵盖不同主题和功能
- 创建和配置 .gitignore 文件,忽略特定文件和目录
2025-07-05 09:36:00 +08:00

13 lines
486 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from MyQR import myqr
myqr.run(
words="Hello, World!", # 跳转到的页面待定(必须是英文字符串)
version = 5, # 二维码版本
level = 'H', # 纠错等级“H”表示最高等级
picture = 'budinggou.gif', # 指定背景图片路径
colorized = True, # 是否彩色二维码
contrast = 1.0, # 对比度,根据需求调整
brightness = 1.0, # 亮度,根据需求调整
save_name = '身份二维码_小米.gif',
)