Commit 1bf6786e by BellCodeEditor

save project

parent 97f8f2f3
Showing with 20 additions and 11 deletions
total = []
def caidan():
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
caidan()
print(total)
\ No newline at end of file
#total = []
#def caidan():
# while True:
# unit= input("请输入:")
# if unit== 'q':
# break
# else:
# total.append(unit)
#caidan()
#print(total)
#try:
# a=input("请输入")
# b=a/2
#except:
# a=int(input("请重新输入"))
# print(a/2)
def add(a,b):
return a+b
print(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