Some tips about python

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Some tips about python相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

Tips about Troubleshooting RAC

Some facts about topological sort

some notes about spring aop

[List] Some Interesting Problems about Games

Some Python Tips

ST:(homework 3)Some problems about Graph Coverage