🌈 搜索
📅  最后修改于: 2022-03-11 14:45:58.578000             🧑  作者: Mango
a_string = "ab-cd" split_string = a_string.split("-", 1) substring = split_string[0] print(substring)