Commit 106089a8 by BellCodeEditor

save project

parent ba4cd437
Showing with 17 additions and 4 deletions
......@@ -16,6 +16,14 @@ def new_input():
print('-'*30)
#print(total)
return (total)
print('\n下一步\n')
p=new_input()
print(p)
\ No newline at end of file
all=new_input()
print(all)
print('\n下一步 输出总值\n↓↓↓')
def count(xx):
count = 0
for i in xx:
count+=i
return (count)
all2 = count(all)
print ("→"+str(all2))
def count():
count = 0 #全局变量
for i in xxx:
count+=i
return (count)
\ 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