Commit cc81f0d9 by BellCodeEditor

save project

parent a7a531a5
Showing with 9 additions and 11 deletions
...@@ -6,13 +6,12 @@ ...@@ -6,13 +6,12 @@
# if unit== 'q': # if unit== 'q':
# break # break
# except: # except:
# print("输入整数")
# break # break
# else: # else:
# total.append(unit) # total.append(unit)
# return total # return(total)
# a=abc() # print(abc())
# print(a)
# try: # try:
# age = int(input("你今年几岁了")) # age = int(input("你今年几岁了"))
# except: # except:
...@@ -21,14 +20,13 @@ ...@@ -21,14 +20,13 @@
# if age<18: # if age<18:
# print('不可以喝酒') # print('不可以喝酒')
# print("结束") # print("结束")
def add(): def add():
x = 5 x = 5
y = 9 y = 9
print("执行return之前") print("return之前")
return x return x
print("执行return之后") print("return之后")
x = x+y z = x+y
a = add() a = add()
print(a) print(a)
\ No newline at end of file
\ 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