DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
replace characters in string python
>>> a = '&#' >>> print a.replace('&', r'&') &# >>> print a.replace('#', r'#') &# >>>
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#replace
#characters
#string
#python
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit