删除特定字符集之后的所有字符

2024-05-20 16:25:46 发布

您现在位置:Python中文网/ 问答频道 /正文

s = 'These are the characters, from this point I want to delete everything'

当Python看到“from”时,我想删除之后的所有内容。


Tags: thetofrom内容thisdeletearepoint