Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 361 Bytes

tips.md

File metadata and controls

7 lines (6 loc) · 361 Bytes

Tips for how to use Python Smartly

  1. use help() to see how to use a method
  2. to keep method clean and reuseful, interaction should be out of the method
  3. ValueError: Attempted relative import in non-package.
    the script who use "from .yyy import xxx" can not be run directly.
    see:http://blog.csdn.net/chinaren0001/article/details/7338041