Commit 1640528f by BellCodeEditor

save project

parent ebc08c33
Showing with 14 additions and 4 deletions
...@@ -3,6 +3,7 @@ def a(): ...@@ -3,6 +3,7 @@ def a():
while 1: while 1:
c=input("请输入(q退出):") c=input("请输入(q退出):")
if c=="q": if c=="q":
print("再见")
break break
else: else:
try: try:
...@@ -10,7 +11,15 @@ def a(): ...@@ -10,7 +11,15 @@ def a():
except: except:
print("请重新输入") print("请重新输入")
else: else:
print("正在打开中...") b.append(c)
break finally:
print("-"*50) print("-"*50)
a() return b
d=a()
print(d)
i=0
def s():
i=0
for i in a:
qq=qq+i
s()
\ 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