if语句

#!/usr/bin/env python
#author:lei
user = "zhanglei"
passwd = "123456"
username = input("\033[31;2musername\033[0m:")
password = input("password:")

if user == username and passwd == password:
print ("Welcome Login...")

else:
print ("invild username or password")
posted @ 2016-05-12 13:52  Jackie207  阅读(136)  评论(0编辑  收藏  举报