Commit 3adcd95c by BellCodeEditor

save project

parent 37745e10
Showing with 17 additions and 10 deletions
def hello(name):
content='你好'+name
return content
a=hello('小依')
print(a)
\ No newline at end of file
while True:
try:
abc=int(input('价格'))
except:
print('整数!')
print('结束')
else:
price=[15,18,14,25]
a=0
for i in price:
a=a+i
print(a)
......@@ -13,5 +13,6 @@ def abc():
total.append(unit)
finally:
print('-'*30)
return total
print(total)
abc()
\ No newline at end of file
abc()
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