Commit dc4f79c3 by BellCodeEditor

save project

parent cfcf87dd
Showing with 6 additions and 6 deletions
def new_input(b):
def new_input():
a=0
return b
total=[]
while True:
unit = input("请输入:")
if unit == 'q':
for j in total:
a+=j
b=a
break
else:
try:
......@@ -14,9 +16,6 @@ def new_input(b):
else:
total.append(unit)
print('-'*30)
for i in unit:
a+=i
b=a
return total
return b
i=new_input()
print(i)
\ 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