$ size libtest.a >test.txt
$ python checksum.py test.txt
checksum.py:
#!/usr/bin/python
import sys import pandas as pd
file = sys.argv[1] data = pd.read_table(file) data.columns = [u'text', u'data', u'bss', u'dec', u'hex', u'filename']
print "sum of text is %d" % data['text'].sum() print "sum of data is %d" % data['data'].sum() print "sum of bss is %d" % data['bss'].sum() print "sum of dec is %d" % data['dec'].sum() --------------------- 作者:上帝啃苹果 来源: 原文:https://blog.csdn.net/a750197579/article/details/48313959 版权声明:本文为博主原创文章,转载请附上博文链接!
如果python 2.7 没有问题 ,就可以进行下一步了 现在安装用于数值计算和绘图的包以及Sklearn 分别是numpy scipy matplotlib pandas 和 sklearn apt-get命令如下
sudo apt-get install python-numpy sudo apt-get install python-scipy sudo apt-get install python-matplotlib sudo apt-get install python-pandas sudo apt-get install python-sklearn --------------------- 作者:yakumoyukarilan 来源: 原文:https://blog.csdn.net/Yakumoyukarilan/article/details/51340358 版权声明:本文为博主原创文章,转载请附上博文链接!