matplotlib python
matplotlib
numpy 【python】numpyで乱数を生成する1(rand, randn, choice等)
>>> p = [0.1,0.5,0.3,0.1] >>> np.random.choice(arr,p=p) 2 >>> np.random.choice(arr,size=10,p=p) array([4, 4, 2, 2, 2, 2, 2, 4, 3, 2])
python 【python】lambda式、無名関数
python 【Python】配列の抽出(array[:]について)
arr = ['A','B','C','D','E','F']
python