Commit 31c55c66 by BellCodeEditor

save project

parent 143317f1
Showing with 31 additions and 2 deletions
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("没有这个账号")
continue
if b !=d:
print("密码错误")
continue
else:
print("次数为零")
exit()
print("欢迎来到对抗路")
\ No newline at end of file
def pp() def pp():
total = [] total = []
while True: while True:
unit= input("请输入jilg gyuygtyu gyug yu fg fyfo bgu:") unit= input("请输入jilg gyuygtyu gyug yu fg fyfo bgu:")
...@@ -12,4 +12,11 @@ def pp() ...@@ -12,4 +12,11 @@ def pp()
else: else:
total.append(unit) total.append(unit)
return total return total
pp() def qh(t):
count=0
for i in t:
count+=i
return count
s=pp()
k=qh(s)
print(k)
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