Commit 4dd20e91 by BellCodeEditor

save project

parent 05e7d622
i=3
a = "1"
b = "2"
while True :
if i>0:
c = input("账号:")
d = input("密码:")
i-=1
if a==c and b==d:
print("输入正确")
break
if a != c:
print("没有这个账号")
print("你还有",str(i),"机会")
continue
if b !=d:
print("密码错误")
print("你还有",str(i),"机会")
continue
else:
print("次数为零")
exit()
print("欢迎来到对抗路")
\ No newline at end of file
a=input("姓名:")
b=input("成绩:")
c=input("科目:")
print(a,"的",c,"成绩是",b)
def pp():
total = []
while True:
unit= input("请输入jilg gyuygtyu gyug yu fg fyfo bgu:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print("qewfhgvedhadblu2gvhldcqrw")
else:
total.append(unit)
return total
def qh(t):
count=0
for i in t:
count+=i
return count
import func
a=func.pp()
b=func.qh(a)
print(b)
\ 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