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

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

c# - Add item to Generic List / Collection using reflection -