Python tricks

  1. print without newline  --> print "hello python",
  2. delete leading space --> s=s.lstrip()
  3. get the type of object --> type()
  4. NOP statement --> pass

你可能感兴趣的:(object,python,delete,newline)