Python:矩阵加法、减法和数乘
#矩阵加法、减法和数乘print("Choose a function: 'addition', 'subtraction' or 'multiplication': ")function = input() #选择功能if function == "addition" or function == "subtraction": matrix_1 = [] #定义矩阵规模 matrix_2 = [