Commit 417f38d4 by BellCodeEditor

save project

parent 30e7486e
Showing with 30 additions and 0 deletions
def abcdefg():
total = []
while True:
try:
unit=input("请输入:")
if unit== 'q':
break
unit=int(unit)
except:
print("Do you wanna have a bad time?")
else:
total.append(unit)
#print(total)
return total
a=abcdefg()
print(a)
def cum(num):
b=0
for i in num:
b+=i
return b
b=cum(a)
print(b)
\ No newline at end of file
import a
a.abcdefg()
a.cum(a)
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