Commit 1bf6786e by BellCodeEditor

save project

parent 97f8f2f3
Showing with 20 additions and 11 deletions
total = [] #total = []
def caidan(): #def caidan():
while True: # while True:
unit= input("请输入:") # unit= input("请输入:")
if unit== 'q': # if unit== 'q':
break # break
else: # else:
total.append(unit) # total.append(unit)
caidan() #caidan()
print(total) #print(total)
\ No newline at end of file #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