题解 | #输出前三同学的成绩#
输出前三同学的成绩
https://www.nowcoder.com/practice/6a62c334fd974905813fb610e93d59bb
name = input().split(' ') name_tuple = () k = 0 for i in name: if (k > 2): break else: name_tuple = name_tuple + (i,) k = k + 1 print(name_tuple)
输出前三同学的成绩
https://www.nowcoder.com/practice/6a62c334fd974905813fb610e93d59bb
name = input().split(' ') name_tuple = () k = 0 for i in name: if (k > 2): break else: name_tuple = name_tuple + (i,) k = k + 1 print(name_tuple)
相关推荐