输入性别(1:男,0:女)、和体重,输出献血量 """ sex = input("请输入性别:") weight = input("请输入体重:") weight = int( weight ) cc = 0 if sex == '1': #男 if weight > 65: cc = 400 else: cc = 300 else: #女 if weight > 45: cc = 300 else: cc = 200 print("献血量:%dCC"%cc)