题解 | #增加元组的长度#

增加元组的长度

https://www.nowcoder.com/practice/31d26c9dbe454cf9a60c72c72ca958df

tuple1 = (1, 2, 3, 4, 5)
tuple2 = (6, 7, 8, 9, 10)
print(tuple1, len(tuple1), sep="\n")
print(tuple1 + tuple2, len(tuple1 + tuple2), sep="\n")

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务