Simple interview qualification confirmation

Topic: Enter age, major, and university to easily determine whether you have a company interview opportunity, and you can change the conditions at will on this basis

age=int(input('请输入你的年龄:'))
print('输入科目只能写计算机或者非计算机')
subject=str(input("请输入你的科目:"))
print('输入大学只能是重点或非重点')
college=str(input("请输入你的大学:"))
if(age<=35 and subject=="非计算机")or( subject=="计算机")or(age>=35 and college=="重点"):
    print("恭喜,你已获得我公司的面试机会")
else:
    print("抱歉,你未达到面试要求")

test:

runfile('C:/Users/we/Desktop/we/exercise.py', wdir='C:/Users/we/Desktop/we')

请输入你的年龄:34
输入科目只能写计算机或者非计算机

请输入你的科目:计算机
输入大学只能是重点或非重点

请输入你的大学非重点
恭喜,你已获得我公司的面试机会

runfile('C:/Users/we/Desktop/we/exercise.py', wdir='C:/Users/we/Desktop/we')

请输入你的年龄:50
输入科目只能写计算机或者非计算机

请输入你的科目:非计算机
输入大学只能是重点或非重点

请输入你的大学:重点
恭喜,你已获得我公司的面试机会

runfile('C:/Users/we/Desktop/we/exercise.py', wdir='C:/Users/we/Desktop/we')

请输入你的年龄:50
输入科目只能写计算机或者非计算机

请输入你的科目:非计算机
输入大学只能是重点或非重点

请输入你的大学:非重点
抱歉,你未达到面试要求

 

Guess you like

Origin blog.csdn.net/qq_38452951/article/details/108939922