14 lines
191 B
Python
14 lines
191 B
Python
|
#!/usr/bin/env python3
|
||
|
# coding:utf-8
|
||
|
|
||
|
import sklearn.datasets as ds
|
||
|
import pylab as pl
|
||
|
|
||
|
|
||
|
digits = ds.load_digits()
|
||
|
print(digits.data.shape)
|
||
|
|
||
|
pl.gray()
|
||
|
pl.matshow(digits.images[0])
|
||
|
pl.show()
|