你可以使用replace来实现你想要做的事情。
>>> string.replace('H:\\Jupyter\\SAF_Prewfdsds\\Testings_05601252\\050_7_150_', '') 'PYPL.csv'
这将用第二个参数替换第一个参数