Commit 7e7ce726 by BellCodeEditor

save project

parent fd664187
Showing with 11 additions and 9 deletions
...@@ -11,5 +11,6 @@ def newinput(): ...@@ -11,5 +11,6 @@ def newinput():
print("请输入数字") print("请输入数字")
else: else:
total.append(unit) total.append(unit)
print(total) return total
newinput() abc=newinput()
\ No newline at end of file print(abc)
\ No newline at end of file
try: def add (x,y):
age=int(input("你今年几岁")) z=x+y
except: print("z的值为:",z)
print("要输入整数") return z
print("程序结束")
\ No newline at end of file result=add(1,2)
\ 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