摘要:
导入numpy包进行科学计算 直接上代码 import numpy as np #使用numpy得到一个二维矩阵 a = np.array([1,2,3]) print(a,type(a)) # [1 2 3] <class 'numpy.ndarray'> a1 = np.array([[1,2, 阅读全文
posted @ 2022-04-21 00:10
a-tao必须奥利给
阅读(56)
评论(0)
推荐(0)
摘要:
异常 python异常类层级 不小心会翻车的异常种类 1.语法错误 path = 'a.txt SyntaxError: EOL while scanning string literal 2.缩进错误 python中缩进规则严格:规定默认4个空格表示一个缩进 缩进错误 list1 = [1,2,3 阅读全文
posted @ 2022-04-21 00:05
a-tao必须奥利给
阅读(61)
评论(0)
推荐(0)

浙公网安备 33010602011771号