linux生成文件命令: sudo touch 2.txt
改变文件权限:sudo chmod 777 file
Ubuntu下用matplotlib作图时显示中文
from matplotlib import font_manager
plt.legend(loc=(0.7, 0.8), prop=zh_font)
其中,查看本机所有的中文输入法的命令是:
fc-list :lang=zh
然后从中挑一个,填进去便可
Traceback (most recent call last):
File "/home/miaominmin/workspace/miaoPython/numpyScipyMatplotlib2.py", line 65, in <module>
import scipy.weave as weave
ImportError: No module named weave
这个问题的解答在:http://blog.csdn.net/lanchunhui/article/details/50540894
注意改成import weave as weave
因为在新版本的SCIPY中,weave已经不包括在内了。
scikit-learn
Machine Learning in Python
1.Simple and efficient tools for data mining and data analysis
2.Accessible to everybody, and reusable in various contexts
3.Built on NumPy, SciPy, and matp