#-*-coding:utf-8 -*- #等待用户输入 user = raw_input("请输入用户名: ") pwd = raw_input("请输入密码: ") # 判断用户名和密码是否等于 gyc,gyc if user == "gyc" and pwd == "gyc": print "恭喜登陆成功!" else: print "登录失败!"