t174.py 241 B

12345678910
  1. longvalue = 9999999999999L
  2. print "%3ld" % 42
  3. print "%d" % 42
  4. print "%d" % 42.0
  5. print "%d" % longvalue
  6. print "%07.2f" % 42
  7. print "%07.2F" % 42
  8. print "%(foo)s" % { 'foo': 'bar' }
  9. #print "%((foo))s" % { '(foo)': 'bar' }
  10. print "%sx" % (103*'a')