Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s1 = 'Machine Learning Learning'
- s2 = 'Learner'
- s3 = s1.replace('Learning', s2, 1) # Learning -> Learner: 1 là số lượng từ tối đa có thể thay thế
- print(s3) # Machine Learner Learning
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement