1.分别取出0到10中的偶数和奇数。
2.判断一个数是否是质数
3.题目
*程序
user =["mengke","songzhao"]
passwd =["123","1234"]
print '''
welcome to system
(C)reate
(L)ogin
'''
x =len(user)
while True:
data =raw_input("please inputyour choise: ")
ss = data.upper()
if ss == "C":
for j in range(0,x):
name =raw_input("name")
if name == user[j]:
print "userexsit"
break
else:
password =raw_input("passwd: ")
user.append(name)
passwd.append(password)
print "cteate userok"
break
elif ss == "L":
for i in range(1,4):
name =raw_input("username:")
password=raw_input("passwd:")
for w in range(0,x):
if name == user[w] andpassword ==passwd[w]:
print"welcome"
exit(0)
else:
print "请输入正确的用户名和密码"
break
print "你已经登陆过三次,请10m以后再登陆"
break
else:
print "请输入正确的命令"