题解 | 输出前三同学的成绩
输出前三同学的成绩
https://www.nowcoder.com/practice/6a62c334fd974905813fb610e93d59bb
tp1=list(input().split()) b=[] index=0 for i in tp1: while index<3 and index<len(tp1): b.append(tp1[index]) index+=1 else: break c=tuple(b) print(c)
输出前三同学的成绩
https://www.nowcoder.com/practice/6a62c334fd974905813fb610e93d59bb
tp1=list(input().split()) b=[] index=0 for i in tp1: while index<3 and index<len(tp1): b.append(tp1[index]) index+=1 else: break c=tuple(b) print(c)
相关推荐