Commit ab935bbc by BellCodeEditor

save project

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