学习笔记(7):零基础掌握 Python 入门到实战-深入浅出字符串(三)

it2025-02-08  30

立即学习: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里面的值

 

相关资源:微信小程序源码-合集6.rar
最新回复(0)