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 "請輸入正確的命令"