def f(x,y): if x == 'abc' and y == '123': print('欢迎abc登录') else: print('用户名或密码错误!') f('abc','123') f('abc','456') f('aaa','123')