string conversions

>>> print "Before %s After" % 7
Before 7 After

>>> print "Before %x After" % 15
Before f After

>>> print "Foo %04d Bar" % 3*3
Foo 0009 Bar

Comments

Popular posts from this blog

Install Cpanm module error : No such file or directory opening compressed index

How to increase Elasticsearch Shard recovery Speed

Shell Script to SSH into servers