2017-12-18python全栈9期第三天第二节之str常用操作方法及for循环之替换

#!/user/bin/python
# -*- coding:utf-8 -*-
s = '张三李四张三李四张三李四'
s1 = s.replace('李四','学习',1)
print(s1)

猜你喜欢

转载自www.cnblogs.com/zhang-da/p/10198471.html
今日推荐