a = 'abcabcabca' a = a.split('c') print(a) #['ab', 'ab', 'ab', 'a']
li = ["hei", "ha", "hello"] # 利用下划线将列表的每一个元素拼接成字符串“hei_ha_hello” li = "_".join(li) print(li) #hei_ha_hello