输入:aDcBe 输出:aBcDE
def fin(str): new_str =str.replace('DcBe','BcDE') return new_str if __name__=='__main__': str = 'aDcBe' print(fin(str))