题解 | #牛牛的替换#
牛牛的替换
http://www.nowcoder.com/practice/f2a107dbb99243798d3048a672e8f747
st = input()[2::].split()
rep = input()
a = 0
for i in range(2):
rep = rep.replace(st[a],st[a+1])
a += 2
print(rep)
牛牛的替换
http://www.nowcoder.com/practice/f2a107dbb99243798d3048a672e8f747
st = input()[2::].split()
rep = input()
a = 0
for i in range(2):
rep = rep.replace(st[a],st[a+1])
a += 2
print(rep)
相关推荐