娟斌心 发表于 2018-8-12 08:39:52

Python1 练习

#!/usr/bin/env python  #codingutf-8
count = 0while count < 3:  username = raw_input("USERNAME:")
  password = raw_input("PASSWORD:")
  if username == "user" and password == "123":
  print "welcome!!!"
break  elif
username != "user" and password != "123":  print "username or password wrong!!!"
  elif username == "user" and password != "123":
  print "password is wrong!!!"
  elif username != "user" and password == "123":
  print "username or password is wrong!!!"
  count +=1
  if count == 3:
  print "go away ang don't back!!!"
页: [1]
查看完整版本: Python1 练习