Commit e13e47d5 by BellCodeEditor

save project

parent dc70412a
print('班级登记卡')
print('用户名:')
print('所属班级:')
print('验证码:3+5=?')
exit()
\ No newline at end of file
import func
import turtle
aa = func.jiage()
print(aa)
d = func.sx(aa)
print('总分是',d)
\ No newline at end of file
def jiage():
total = []
while True:
unit= input("请输入")
if unit== 'q':
break
else:
total.append(unit)
return total
#a=jiage()
#print(a)
def sx(ju):
b=0
for i in ju:
b=b+int(i)
return b
#c=sx(a)
#print(c
\ No newline at end of file
usename="python"
usepassword="123456"
while True:
name=input("请输入用户名:")
password=input("请输入密码:")
if name==usename and password==usepassword:
print("登录成功!")
break
if name!=usename:
print("用户名错误,请重新输入!")
if password!=usepassword:
print("密码错误,请重新输入!")
if name!=usename and password!=usepassword:
print("用户名和密码错误,请重新输入!")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment