Commit 78997f37 by BellCodeEditor

auto save

parent 11b69cec
......@@ -5,6 +5,18 @@ def abc():
if unit== 'q':
break
else:
total.append(unit)
print(total)
abc()
\ No newline at end of file
try:
unit=int(unit)
except:
print("要输入整数啊!")
else:
total.append(unit)
return total
# a=abc()
def sum(money):
count=0
for i in money:
count+=i
return count
# b=sum(a)
# print(b)
import func
data=func.abc()
score=func.sum(data)
print(score)
\ 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