Commit 851b93a5 by BellCodeEditor

save project

parent dc70412a
Showing with 34 additions and 0 deletions
def apple():
total = []
while True:
try:
unit= int(input("请输入:"))
if unit== 'q':
break
else:
total.append(unit)
except:
print("请输入数字")
else:
print()
print(total)
apple()
\ No newline at end of file
total=[1,2,3]
def sesed(a):
weer=0
for i in a:
weer+=i
return weer
weet=sesed(total)
print(weet)
\ No newline at end of file
try:
e=int(input('what are your do'))
except:
print('r')
else:
if e<18:
print('yuit')
print('yee')
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