python字符串替换 a = 'aabbccddaa' b = a.replace('aa', 'ff') print(b) 输出: ffbbccddff 提供Python自动化脚本编写服务,如有需求可以联系qq:838648292