📜  python 在子字符串之后拆分字符串 - Python 代码示例

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

代码示例1
my_string="hello python world , i'm a beginner "
print my_string.split("world",1)[1]

#split takes the word(or character) to split on and optionally a limit to the number of splits.
#In this example split on "world" and limit it to only one split.