Commit d58b1f40 by BellCodeEditor

save project

parent 07b641ce
...@@ -13,12 +13,12 @@ def new_input(): ...@@ -13,12 +13,12 @@ def new_input():
total.append(unit) total.append(unit)
return total return total
result = new_input()
print(result) #print(result)
def count(name): def count(name):
sum = 0 sum = 0
for i in name: for i in name:
sum = sum+i sum = sum+i
return sum return sum
result1 = count(result) #result1 = count(result)
print(total) #print(total)
\ No newline at end of file \ No newline at end of file
import func
total = func.new_input()
score = func.count(total)
print("总分是:"+str(score))
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