码迷,mamicode.com
首页 > 编程语言 > 详细

Some tips about python

时间:2016-06-20 19:09:41      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:default   python   running   system   better   

1.As py script running under unix system. Need to be endowed with execute permission.

e.g. chmod +x a.py


2.If you want to run script like ./xx.py. First of all append #!/usr/bin/pyhon 3 on first line of content.


3. #!/usr/bin/python3 & #!/usr/bin/env python 3 which called shebang line. The second one is better. Like some enviroment python3 interpretor doesn‘t install on default location(/usr/bin).


4.Key functions of IDE.

    a. highlight

    b. find typo

    c. debug


Some tips about python

标签:default   python   running   system   better   

原文地址:http://luluuy.blog.51cto.com/279347/1790997

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!