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

增加元组的长度

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

old_tuple = tuple(range(1,6))
print(old_tuple)
print(len(old_tuple))
new_tuple = old_tuple+tuple(range(6,11))
print(new_tuple)
print(len(new_tuple))

全部评论

相关推荐

回家当保安:今天刚过字节一面,接佬的好运
我的求职进度条
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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