[python学习]结合开源库学习python

代码碎片1

[python学习]结合开源库学习python
#!/usr/bin/python

# please add your code here!

import matplotlib

matplotlib.use('Agg')

import matplotlib.pyplot as pl

from pandas import Series, DataFrame

import pandas as pd

import numpy as np

from sklearn import datasets

#iris = datasets.load_iris();

#print iris;

digits = datasets.load_digits();

print digits.images.shape;

#pl.imshow(digits.images[-1], cmap=pl.cm.gray_r);

#pl.savefig("o.png");
code1

 

你可能感兴趣的:(python)