Commit 81d3e60e by BellCodeEditor

save project

parent 340cfec0
Showing with 4 additions and 6 deletions
...@@ -12,9 +12,9 @@ def a(): ...@@ -12,9 +12,9 @@ def a():
print('请输入整数') print('请输入整数')
else: else:
total.append(unit) total.append(unit)
return total return total
#---------------------------------------------#
def sum(b): def sum(b):
...@@ -22,10 +22,9 @@ def sum(b): ...@@ -22,10 +22,9 @@ def sum(b):
for i in b: for i in b:
co+=i co+=i
return co return co
print('hhh') total= a()
w=sum(total)
print(w)
import turtle
\ 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