立即学习:https://edu.csdn.net/course/play/26676/338776?utm_source=blogtoedu
s='python ok'
s.index('p')
>>>0
s.split(' ')
【'python','ok'】
'-'.join(lst):lst 代表数据集合 join代表用-开组合数据集
format 代表向占位符填充format里面的值
立即学习:https://edu.csdn.net/course/play/26676/338776?utm_source=blogtoedu
s='python ok'
s.index('p')
>>>0
s.split(' ')
【'python','ok'】
'-'.join(lst):lst 代表数据集合 join代表用-开组合数据集
format 代表向占位符填充format里面的值