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

增加元组的长度

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

tup = (1,2,3,4,5)

print(tup)
print(len(tup))

tup2 = (6,7,8,9,10)

print(tup+tup2)
print(len(tup+tup2))

全部评论

相关推荐

2025-12-18 14:55
广西大学 用户运营
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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