摘要:
一.Numpy/Scipy 1 #coding=utf-8 2 import numpy 3 import scipy 4 5 x = numpy.ones((3, 4)) 6 print x 7 """ 8 [[ 1. 1. 1. 1.] 9 [ 1. 1. 1. 1.] 10 [ 1. 1. 1 阅读全文
摘要:
一.类 1 #coding=utf-8 2 class Animal(object): 3 def __init__(self, name): 4 self.name = name 5 zebra = Animal("Jeffrey") 6 print zebra.name 7 8 #overrid 阅读全文