上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 61 下一页
  2023年12月8日
摘要: 哪些包是自带的 没有的包怎么下载 在python中使用 pip install 在go中使用go get 哈哈哈,被我们伟大的防火墙给阻拦了,好啊好啊 就会下载到我们设置的环境变量里 阅读全文
posted @ 2023-12-08 15:43 黑逍逍 阅读(59) 评论(0) 推荐(0)
  2023年12月6日
摘要: 是 阅读全文
posted @ 2023-12-06 09:17 黑逍逍 阅读(10) 评论(0) 推荐(0)
  2023年12月5日
摘要: 函数采用 驼峰命名法 不然会报错的 阅读全文
posted @ 2023-12-05 12:45 黑逍逍 阅读(28) 评论(0) 推荐(0)
  2023年12月4日
摘要: xml下用xpath from lxml import etree tree = etree.parse(file_path) root = tree.getroot() title_expression = "/article/title[not(@xml:lang)]//text()" titl 阅读全文
posted @ 2023-12-04 09:45 黑逍逍 阅读(22) 评论(0) 推荐(0)
  2023年12月1日
摘要: XML文档的根元素 根元素是XML文档中所有其他元素的父元素。它是文档的起点,必须是唯一的<root> <!-- 其他元素和内容 --> </root> 介绍xml信息 属性类型意义调用 tag str Element名 Element.tag attrib dic 元素有哪些属性 Element. 阅读全文
posted @ 2023-12-01 17:30 黑逍逍 阅读(129) 评论(0) 推荐(0)
  2023年11月30日
摘要: 变量:数据可变 累计的时候可用 申明数据类型省略,直接写就行 var x = 10 常量:数据不可变 阅读全文
posted @ 2023-11-30 18:13 黑逍逍 阅读(7) 评论(0) 推荐(0)
摘要: 1. 安装包直接安装 2. 配置环境变量 GOPARH: 新建的,用来存放go下载的依赖的 GOROOT: 你安装go的目录 3. 创建文件目录 在GOPATH地址下面,创建3个文件夹 阅读全文
posted @ 2023-11-30 12:00 黑逍逍 阅读(23) 评论(0) 推荐(0)
  2023年11月29日
摘要: numpy.mean() import numpy as np a = np.array([[1,2,3],[3,4,5],[4,5,6]])print (a)print (np.mean(a))print (np.mean(a, axis = 0))print (np.mean(a, axis = 阅读全文
posted @ 2023-11-29 11:39 黑逍逍 阅读(16) 评论(0) 推荐(0)
摘要: ndarray.ndim - 数组的维度: import numpy as np # 创建一个一维数组 arr_1d = np.array([1, 2, 3]) print("数组:", arr_1d) print("数组的维度:", arr_1d.ndim) 数组: [1 2 3] 数组的维度: 阅读全文
posted @ 2023-11-29 11:37 黑逍逍 阅读(15) 评论(0) 推荐(0)
摘要: 就是数据类型的区别 但是功能却大不一样 NumPy数组提供了丰富的数学、统计和数组操作,如求和、平均值、最小值、最大值等。在二维数据,max降维。 Python列表提供了一些基本的列表操作,但没有NumPy数组提供的广泛数学和科学计算功能 一维的numpy,来求平均值 import numpy as 阅读全文
posted @ 2023-11-29 11:20 黑逍逍 阅读(20) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 61 下一页