题解 | #增加元组的长度#
增加元组的长度
https://www.nowcoder.com/practice/31d26c9dbe454cf9a60c72c72ca958df
import sys a=[] for i in range(0,5): a.append(i+1) print(tuple(a)) print(len(a)) for j in range(5,10): a.append(j+1) print(tuple(a)) print(len(a))
增加元组的长度
https://www.nowcoder.com/practice/31d26c9dbe454cf9a60c72c72ca958df
import sys a=[] for i in range(0,5): a.append(i+1) print(tuple(a)) print(len(a)) for j in range(5,10): a.append(j+1) print(tuple(a)) print(len(a))
相关推荐