Loading...
代码import numpy as np arr1 = np.arange(10) print(arr1) print( arr1[5] ) print...
代码import numpy as np #列表与标量计算 print( arr2 * 10) data = [[1,2,3], [4,5,6]] a...
代码import numpy as np arr1 = np.array([2, 3, 4]) print(arr1) print(arr1.dtype...
代码import os print( os.path.abspath('.')) #以.为相对路径查找绝对路径 print( os.path.abspat...
代码import random print(random.randint(1,6)) print(random.choice(['aa', 'bb', '...