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: price=[15,18,14,25]
try: a=0
abc=int(input('价格')) for i in price:
except: a=a+i
print('整数!') print(a)
print('结束')
else:
...@@ -13,5 +13,6 @@ def abc(): ...@@ -13,5 +13,6 @@ def abc():
total.append(unit) total.append(unit)
finally: finally:
print('-'*30) print('-'*30)
return total
print(total) print(total)
abc() abc()
\ 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