题解 | #发送offer#

发送offer

https://www.nowcoder.com/practice/66969869634b4142ac371684fcf89764

message = 'Allen, you have passed our interview and will soon become a member of our company.\nTom, you have passed our interview and will soon become a member of our company.\nAllen, welcome to join us!\nAndy, welcome to join us!'
message2=message.replace("Tom","Andy")
message3 =message2.replace("Andy","Tom",1)
print(message3)

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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