私信  •  关注

Alexander Santos

Alexander Santos 最近创建的主题
Alexander Santos 最近回复了
6 年前
回复了 Alexander Santos 创建的主题 » Python string.strip()显示了奇怪的行为

你可以使用replace来实现你想要做的事情。

>>> string.replace('H:\\Jupyter\\SAF_Prewfdsds\\Testings_05601252\\050_7_150_', '')
'PYPL.csv'

这将用第二个参数替换第一个参数