题解 | #成绩输入输出#
成绩输入输出
http://www.nowcoder.com/practice/eb49750ef0de47168c21761de086d97c
通用写法
# def score_split():
# a,b,c=map(int,input().split(" "))
# print("score1=%d,score2=%d,score3=%d"%(a,b,c))
# score_split()
def score_split():
list1=list(map(str,input().split(" ")))
len_list1=len(list1)
for i in range(len_list1):
if i != len_list1-1:
print("score" + str(i+1) + "=" + list1[i] + ",",end='')
else:
print("score" + str(i+1) + "=" + list1[i])
score_split()