Commit bab5c28a by BellCodeEditor

save project

parent 97e1b013
import func
data=func.sui()
score=func.bian(data)
print("你的成绩是"+str(score))
\ No newline at end of file
...@@ -12,11 +12,11 @@ def sui(): ...@@ -12,11 +12,11 @@ def sui():
else: else:
total.append(unit) total.append(unit)
return total return total
n=sui() #n=sui()
def bian(num): def bian(num):
s=0 s=0
for i in num: for i in num:
s=s+i s=s+i
return s return s
pay=bian(n) #pay=bian(n)
print(pay) #print(pay)
\ No newline at end of file \ 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