LinuxNote

python learn note

# apt-get install python python-dev
# apt-get install python-setuptools
# apt-get install python-pip
# apt-get install ipython
# curl https://codeload.github.com/secdev/scapy/zip/v2.3.2
# unzip scapy-2.3.2.zip
# cd scapy-2.3.2/
# python setup.py install

os.popen("shell command").read() 适合只有一行输出的shell 命令