Python tricks

来源:互联网 发布:思科软件技术培训 编辑:程序博客网 时间:2024/05/22 17:40
  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
原创粉丝点击