Commit 0ef124b4 by BellCodeEditor

save project

parent 8de806f1
import func
bbb=func.aaa()
ccc=func.a(bbb)
print('运动员的总分是'+str(ccc))
\ No newline at end of file
...@@ -12,7 +12,7 @@ def aaa(): ...@@ -12,7 +12,7 @@ def aaa():
else: else:
total.append(unit) total.append(unit)
print('-'*30) print('-'*30)
print(total) #print(total)
return total return total
#---------------------------------------------------------------------------------- #----------------------------------------------------------------------------------
def a(y): def a(y):
...@@ -21,6 +21,6 @@ def a(y): ...@@ -21,6 +21,6 @@ def a(y):
b=b+i b=b+i
return b return b
#---------------------------------------------------------------------------------- #----------------------------------------------------------------------------------
d=aaa() # d=aaa()
e=a(d) # e=a(d)
print(e) # print(e)
\ No newline at end of file \ No newline at end of file
#try: try:
#a=int(input(('你今年几岁了?'))) a=int(input(('你今年几岁了?')))
#except: except:
#print('要输入整数啊') print('要输入整数啊')
#else: else:
#if a<18: if a<18:
#print('不可以喝酒哦') print('不可以喝酒哦')
#print('程序结束~~') print('程序结束~~')
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