Commit c4279f94 by BellCodeEditor

save project

parent 279eb3b6
def new_input(): def new_input():
total = [] total = []
while True: while True:
unit = input("请输入:") unit = input("请输入(退出请按q):")
if unit == 'q': if unit == 'q':
break break
else: else:
......
...@@ -4,4 +4,4 @@ import func ...@@ -4,4 +4,4 @@ import func
data = func.new_input() data = func.new_input()
score = func.sum(data) score = func.sum(data)
print("总分是:"+str(score)) print("总分是:" + str(score))
\ 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