Commit 9c272da1 by BellCodeEditor

save project

parent e185b7d8
import func
func.new_input()
\ No newline at end of file
def asd():
a=0
total = []
while True:
try:
unit= input("请输入:")
if unit== 'q':
break
unit_int=int(unit)
except:
print("请输录一个整数")
else:
total.append(unit_int)
for i in total:
a = a + i
return a
print(asd())
\ 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