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