python - Remove the first character of a string -


i want remove first character of string.

for example, string starts ":" , want remove only, there lot of ":" in string shouldn't removed.

i writing code in python

s = ":dfa:sif:e" print s[1:] 

prints

dfa:sif:e 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -