Commit 7e7ce726 by BellCodeEditor

save project

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