Commit ab935bbc by BellCodeEditor

save project

parent c96f50c0
Showing with 5 additions and 14 deletions
'''
def new_jnput():
total = []
while True:
......@@ -18,17 +17,6 @@ def new_jnput():
result = new_jnput()
print(result)
'''
'''
try:
age = int(input('你今年几岁了?'))
except:
print('要输入整数啊')
else:
if age < 18:
print('不可以喝酒')
print('程序结束~~')
'''
money=[]
def sum(money):
count=0
......@@ -38,4 +26,7 @@ def sum(money):
price = [23,56,87,95]
resurt=sum(price)
print(resurt)
\ No newline at end of file
import func
data=func.new_input()
score=func.sum(data)
print('这位选手的总分数为:'+str(score))
\ 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