crespo09 发表于 2018-8-7 07:51:20

python中if else流程判断

#!/usr/bin/env python  _username = "lijinzhu"
  _userpasswd = "abc123"
  username = input("username:")
  userpasswd = input("userpasswd:")
  if _username == username and _userpasswd == userpasswd:
  print("Welcome usr {name} login...".format(name=username))
  else:
  print("Invalid username or passwd!")
页: [1]
查看完整版本: python中if else流程判断