Commit 7cb2f8b5 by BellCodeEditor

save project

parent 05e7d622
Showing with 29 additions and 0 deletions
total = []
def shujiage():
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
a=int(unit)
except
print("请输入整数")
else:
total.append(a)
return total
jiage=shujiage()
print(jiage)
def qiuhe(liebiao):
s=0iebiao:
s=s+i
for i in l
return s
zongjia=qiuhe(jiage)
print(zongjia)
\ No newline at end of file
import func
a=func.shujiage()
b=func.qiuhe()
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