python_6_if
_username='qi' _password='abc123' username=input("username:") password=input('password:') if _username==username and _password==password: print("welcome user {name}...".format(name=username)) else: print('Invalid username or password!') print('finish')#前边顶格,不管执行if,还是else都会这行这一步,因为这一步和上一步没有因果关系,只有顺序关系