https://xxyh.xiaoli.icu/api/p_blood_inherit.phphttps://xxyh.xiaoli.icu/api/p_blood_inherit.php?father=A&mother=B按 ABO 血型遗传规律(A/B 显性、O 隐性)计算子女可能的血型、各血型理论概率与不可能出现的血型。
father / mother 取 A、B、AB、O。概率为孟德尔遗传的理论值,实际人群分布受基因频率影响;Rh 阴性属独立遗传系统,不在本接口范围。
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
father |
string | 必填 | A | 父亲血型 A/B/AB/O |
mother |
string | 必填 | B | 母亲血型 A/B/AB/O |
https://xxyh.xiaoli.icu/api/p_blood_inherit.php
此处将显示接口返回结果…
{
"code": 200,
"msg": "ok",
"data": {
"father": "A",
"mother": "B",
"possible": ["AB", "A", "B", "O"],
"probability": { "AB": 25, "A": 25, "B": 25, "O": 25 },
"impossible": []
}
}
—