Commit 1299deea by BellCodeEditor

save project

parent 8114f9c4
import func
import turtle
aa = func.jiage()
print(aa)
d = func.sx(aa)
print('总分是',d)
\ No newline at end of file
def jiage(): def jiage():
total = [] total = []
while True: while True:
unit= input("str") unit= input("请输入")
if unit== 'q': if unit== 'q':
break1 break
else: else:
total.append() total.append(unit)
print(total)
jiage() return total
\ No newline at end of file #a=jiage()
#print(a)
def sx(ju):
b=0
for i in ju:
b=b+int(i)
return b
#c=sx(a)
#print(c
\ 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