Commit 013737d1 by BellCodeEditor

save project

parent 7f5e6609
Showing with 3 additions and 2 deletions
...@@ -6,11 +6,11 @@ def newinput(): ...@@ -6,11 +6,11 @@ def newinput():
break break
else: else:
try: try:
unit= input("请输入:") unit= int(unit)
except: except:
print("输入整数,傻子") print("输入整数,傻子")
else: else:
total.append(unit) total.append(unit)
return total return total
p=newinput p=newinput()
print(p) print(p)
\ 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