代码
提交代码
sex = input() age = int(input()) if sex == 'male': if age > 50: print('old male') else: print('young male') else: if age > 50: print('old female') else: print('young female')
运行结果