题解 | #列表的长度#
列表的长度
https://www.nowcoder.com/practice/2b32ef2fd5bb42159e01121fac9fd496
s = input().split(" ")
lst = []
for i in s:
lst.append(i)
print(len(lst))
列表的长度
https://www.nowcoder.com/practice/2b32ef2fd5bb42159e01121fac9fd496
s = input().split(" ")
lst = []
for i in s:
lst.append(i)
print(len(lst))
相关推荐