import numpy as np


def betterWay():
    arr1 = np.array([1,2,3,4])
    arr2 = np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])

    #另一只创造数组方式
    arr3 = np.arange(0,1,0.2)
    #起始，终止（包含），数字个数
    arr4 = np.linspace(0,1,5)

def suijishu():
    rand1 = np.random.random(100)

    print()

def suoyin():
    arr2 = np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
    print()

def change():
    arr = np.arange(12)
    print()

def juzhen():
    matr1 = np.mat("1,2,3;4,5,6;7,8,9")
change()
print('')