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

增加元组的长度

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

tup1 = tuple(range(1, 6))
tup2 = tuple(range(6, 11))
tup3 = tup1 + tup2
# print(tup1)
# print(len(tup1))
# print(tup3)
# print(len(tup3))
print(tup1, len(tup1), tup3, len(tup3), sep='\n')

全部评论

相关推荐

给个offer灞:校友 是不是金die
点赞 评论 收藏
分享
双尔:反手回一个很抱歉,经过慎重考虑,您与我的预期暂不匹配,感谢您的投递
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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