Commit 30b931bd by BellCodeEditor

save project

parent 21c59c99
Showing with 28 additions and 21 deletions
def add():
x = 5
y = 9
print("执行return之前")
return x
print("执行return之后")
z = x + y
result = add()
print(result)
\ No newline at end of file
# def zxw(): def zxw():
# total = [] toro = []
# while True: while True:
# unit= input("请输入:") yys=input("给我说出价格(q退出)")
# if unit== 'q': if yys == "q":
# break break
# else: else:
# total.append(unit) try:
# print(total) yys=int(yys)
# zxw() except:
try: print("输入整数")
zxwsb = int(input("请输入价格!!!")) else:
except: toro.append(yys)
print("必须要输入整数!") finally:
else: print("——"*30)
if zxwsb < 20: return toro
print("必须要吃屎哦,不吃干你!") pdd = zxw()
print("程序被你打死了") print(pdd)
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