Go to file Use this template
hblu 475d442401
All checks were successful
autograde-assignment-01-infocard / check-trigger (push) Successful in 13s
autograde-assignment-01-infocard / grade (push) Has been skipped
Initial commit
2025-12-06 16:55:44 +08:00
.gitea/workflows Initial commit 2025-12-06 16:55:44 +08:00
src Initial commit 2025-12-06 16:55:44 +08:00
tests Initial commit 2025-12-06 16:55:44 +08:00
.gitignore Initial commit 2025-12-06 16:55:44 +08:00
README.md Initial commit 2025-12-06 16:55:44 +08:00
REPORT.md Initial commit 2025-12-06 16:55:44 +08:00
requirements.txt Initial commit 2025-12-06 16:55:44 +08:00

作业 1个人信息卡生成器

任务

  • src/card_generator.py 完成 generate_card:格式化输出个人信息卡。
  • 支持可选字段为空时的占位、手机号标准化、邮箱基本校验、宽度控制。
  • 通过公开测试与隐藏测试;提交 REPORT.md 反思。

环境与依赖

  • Python 3.11+
  • 安装依赖:pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple

本地运行

pytest -q

提交要求

  • 提交信息需包含关键字“完成作业”以触发评分。
  • 确保 REPORT.md 已填写。

评分构成(总分 15

  • Core 测试8 分
  • Edge 测试4 分
  • REPORT.md3 分