题解 | #牛客运动会#

牛客运动会

http://www.nowcoder.com/practice/ca23b85cb3d447fea91803043013859c

my_tuple = ('Tom', 'Andy')

print('Here is the original tuple:') for name in my_tuple: print(name)

try: my_tuple[1] = 'Allen' except: print() print("my_tuple[1] = 'Allen' cause a TypeError: 'tuple' object does not support item assignment")

my_tuple = ('Tom', 'Allen') print() print('my_tuple was changed to:') for name in my_tuple: print(name)

跟着题目来打是不对的

全部评论
题目真坑,上面和下面不一样
点赞 回复 分享
发布于 2022-07-23 19:35
奇怪这是为什么
点赞 回复 分享
发布于 2022-07-04 15:13

相关推荐

嵌入式求职之路:可以看我经验😂,https://www.nowcoder.com/share/jump/73221730841876945
点赞 评论 收藏
分享
待现的未见之事:起码第一句要把自己的优势说出来吧。比如什么xx本27届学生,随时到岗....
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务