Python Tips & Tricks

Useful resources:

  1. python cook book
  2. dive into python
  3. python liabrary manual
  4. python turtorial
  5. python<编程金典读书笔记>
  6. python conferrence paper
  7. IBM-可爱的python系列
  8. python Editors
  9. download python books
  10. 啄木鸟社区
  11. Debugging in python   Debugger commands
Tips & Tricks:

  1. get the ip address of localhost:
    socket.gethostbyname(socket.gethostname())
  2. using module 'cmd' to build intercative application:
    import cmd
    class Interactive(cmd.Cmd):
        def __init__(self):
            cmd.Cmd.__init__(self)
            self.prompt = '%'
        def help_test(self):
            print 'you have typed /'test/' command'
        def do_test(self,arg):
            print 'Now is procceeding your /'test/' command.'
            print 'your arguments are:',arg
        def do_EOF(self,arg):
            return True
    if __name__ == '__main__':
        term = Interactive()
        term.cmdloop()you can lookup python standard library for details
  3. others to be addedothers to be added

你可能感兴趣的:(python,application,download,resources,debugging,books)