YUANya

导航

 
a= 'eeekkksksksk'
print a.replace('e','s').replace('s','k')

#kkkkkkkkkkkk

change={"e":"s","k":'@',"s":"!"}
a_new=''.join(change[i] for i in a)
print(a_new)

'''
sss@@@!@!@!@
'''

 

posted on 2019-07-11 21:09  YUANya  阅读(224)  评论(0编辑  收藏  举报