Commit 292401ec by BellCodeEditor

save project

parent cfdc25ce
Showing with 7 additions and 3 deletions
def new_input():
total = []
unit = 0
j=0
while True:
unit = input("请输入数字:(输入q退出)")
try:
......@@ -11,5 +12,9 @@ def new_input():
print("不是整数,给我输入整数!")
else:
total.append(a)
print (unit)
new_input()
\ No newline at end of file
return j
print (unit)
print (j)
new_input()
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