📜  python 删除后缀 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:21.535000             🧑  作者: Mango

代码示例1
>>> 'MiscTests'.removesuffix('Tests')
'Misc'
>>> 'TmpDirMixin'.removesuffix('Tests')
'TmpDirMixin'