DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python replace first
'TESTstringTEST'.replace('TEST', 'replaced', 1) # output 'replacedstringTEST'
PREVIOUS
NEXT
Tagged:
#python
#replace
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit