Senin, 09 Desember 2013

Tips for Python


  1. Use [Ctrl+Alt+Enter] to configure interactive console in Eclipse-PyDev (Console for currently active editor)
  2. Use print('x',...) to print without newline concate with list
    print('x', os.listdir(self.right))
    
  3. Enable PyDev Interactive Console while Debugging Session
    To enable, go to Window | Preferences | PyDev | Interactive Console and check 'Connect console to Debug Session?
  4. If you get an error message like this
    Assignment to reserved built-in symbos: abs
    , then then you can add comments
    # @ReservedAssignment
     at the end of the line so that it is no longer regarded as an error
  5. ...

Tidak ada komentar:

Posting Komentar