# shuang
def compute():
father=input('请输入父亲身高\n')
mother=input('请输入母亲身高\n')
result=(float(father)+float(mother))*0.54
print('\033[31;1;35m预测子女身高为:{0}'.format(result))
if __name__ == '__main__':
try:
compute()
except:
print('请重新输入')
compute()
Python实操根据父母身高预测子女身高
于 2023-08-18 09:22:49 首次发布