当前位置: 首页 > news >正文

网站如何制作建设深圳百度公司地址在哪里

网站如何制作建设,深圳百度公司地址在哪里,仪征做网站公司,网站怎样做wap端Numpy模块中的append()函数和insert()函数 1、append()函数的使用 append(arr,values,axisNone) arr 必选,要添加元素的数组 values 必选,要添加的元素数组 axis 可选,默认值为None。当省略该参数时,表示在…

Numpy模块中的append()函数和insert()函数

1、append()函数的使用

append(arr,values,axis=None)
arr         必选,要添加元素的数组
values      必选,要添加的元素数组
axis        可选,默认值为None。当省略该参数时,表示在数组末尾添加元素,且返回一个一维数组;当axis=0时,表示在行方向上添加元素;当axis=1时,表示列方向上添加元素。

2、insert()函数的使用

insert(arr,obj,values,axis)
arr         必选,要添加元素的数组
obj         必选,数组的索引值,表示要插入元素的位置
values      必选,要添加的元素数组
axis        可选,默认值为None。当省略该参数时,表示在数组末尾添加元素,且返回一个一维数组;当axis=0时,表示在行方向上添加元素;当axis=1时,表示列方向上添加元素。
##############################
##作者:白雪公主的后妈
##时间:2024年12月28日
##主题:数组的处理
##############################
'''
数组的常见处理操作包括在数组中添加或者删除元素,处理数组中的缺失值和重复值,对数组进行拼接和拆分,等等。
'''
#1、添加数组元素
#Numpy模块中的append()函数和insert()函数
#1.1    append()函数
import numpy as np
arr=np.array([[1,2,3],[4,5,6]])
print(arr)      #注意原始数组为二维数组,采用append()函数添加元素后变为一维数组
arr1=np.append(arr,[[7,8,9]])
print(arr1)
###############
#如果不改变多为数组维度的情况下在数组末尾添加元素,可以在append()函数添加参数axis
arr=np.array([[1,2,3],[4,5,6]])
arr1=np.append(arr,[[7,8,9]],axis=0)
print(arr1)
'''
[[1 2 3][4 5 6][7 8 9]]当axis=0时,数组的行数增加,数组的列数不变。
'''
arr=np.array([[1,2,3],[4,5,6]])
arr1=np.append(arr,[[7,8],[9,10]],axis=1)
print(arr1)
'''
[[ 1  2  3  7  8][ 4  5  6  9 10]]当axis=1时,数组的行数不变,数组的列数增加。
'''
'''
注意:!!!!!!!!!!!!!!!!!!!!!
下面详细的介绍一下append()函数的用法
append(arr,values,axis=None)
arr         必选,要添加元素的数组
values      必选,要添加的元素数组
axis        可选,默认值为None。当省略该参数时,表示在数组末尾添加元素,且返回一个一维数组;当axis=0时,表示在行方向上添加元素;当axis=1时,表示列方向上添加元素。'''
#1.2    insert()函数对数组添加元素,用于在指定位置插入元素
arr=np.array([[1,2,3],[4,5,6]])
arr1=np.insert(arr,1,[7,8,9])     #z在索引值1的元素之前插入数组,后返回一维数组。
print(arr1)
#输出结果:[1 7 8 9 2 3 4 5 6]
################
#在不改变数组维度的情况下,在数组的指定位置插入元素,可以在insert()函数添加参数axis
arr=np.array([[1,2],[3,4],[5,6]])
arr1=np.insert(arr,1,[7,8],axis=0)
arr2=np.insert(arr,1,[7,8,9],axis=1)
print(arr1)
print(arr2)
'''
[[1 2][7 8][3 4][5 6]]#############
[[1 7 2][3 8 4][5 9 6]]#############insert(arr,obj,values,axis)
arr         必选,要添加元素的数组
obj         必选,数组的索引值,表示要插入元素的位置
values      必选,要添加的元素数组
axis        可选,默认值为None。当省略该参数时,表示在数组末尾添加元素,且返回一个一维数组;当axis=0时,表示在行方向上添加元素;当axis=1时,表示列方向上添加元素。  
'''


文章转载自:
http://gasconade.xsfg.cn
http://endoergic.xsfg.cn
http://kanoon.xsfg.cn
http://monseigneur.xsfg.cn
http://permanence.xsfg.cn
http://dispeace.xsfg.cn
http://orrin.xsfg.cn
http://headworker.xsfg.cn
http://retinoscope.xsfg.cn
http://antideuteron.xsfg.cn
http://superload.xsfg.cn
http://gimmal.xsfg.cn
http://anabasis.xsfg.cn
http://inclosure.xsfg.cn
http://syntonization.xsfg.cn
http://barytron.xsfg.cn
http://rezidentsia.xsfg.cn
http://uninstall.xsfg.cn
http://temporization.xsfg.cn
http://kincob.xsfg.cn
http://illustrational.xsfg.cn
http://cased.xsfg.cn
http://agronomic.xsfg.cn
http://cheapshit.xsfg.cn
http://foreskin.xsfg.cn
http://electricize.xsfg.cn
http://dozy.xsfg.cn
http://implausible.xsfg.cn
http://hodoscope.xsfg.cn
http://phoneticise.xsfg.cn
http://routinely.xsfg.cn
http://theatrician.xsfg.cn
http://destructional.xsfg.cn
http://odu.xsfg.cn
http://phototonus.xsfg.cn
http://priorite.xsfg.cn
http://phycoerythrin.xsfg.cn
http://monacal.xsfg.cn
http://gadgetize.xsfg.cn
http://unlace.xsfg.cn
http://manager.xsfg.cn
http://xanthocarpous.xsfg.cn
http://noctambulist.xsfg.cn
http://maze.xsfg.cn
http://chime.xsfg.cn
http://pdi.xsfg.cn
http://manhattanite.xsfg.cn
http://buprestid.xsfg.cn
http://chambered.xsfg.cn
http://impracticality.xsfg.cn
http://kilocharacter.xsfg.cn
http://wrist.xsfg.cn
http://astrachan.xsfg.cn
http://periphrastic.xsfg.cn
http://polygonize.xsfg.cn
http://liposome.xsfg.cn
http://haick.xsfg.cn
http://downdrift.xsfg.cn
http://disintermediate.xsfg.cn
http://comtesse.xsfg.cn
http://tpi.xsfg.cn
http://tegular.xsfg.cn
http://prancy.xsfg.cn
http://aethereally.xsfg.cn
http://anthropologic.xsfg.cn
http://podzolisation.xsfg.cn
http://distad.xsfg.cn
http://infiltrator.xsfg.cn
http://shareout.xsfg.cn
http://apropos.xsfg.cn
http://bonaire.xsfg.cn
http://snigger.xsfg.cn
http://miaul.xsfg.cn
http://clothespole.xsfg.cn
http://hypsometer.xsfg.cn
http://unpatriotic.xsfg.cn
http://communications.xsfg.cn
http://pinpoint.xsfg.cn
http://devotionally.xsfg.cn
http://eyehole.xsfg.cn
http://punctually.xsfg.cn
http://assumable.xsfg.cn
http://understrapper.xsfg.cn
http://iranian.xsfg.cn
http://elegit.xsfg.cn
http://colorful.xsfg.cn
http://rationality.xsfg.cn
http://gniezno.xsfg.cn
http://eolian.xsfg.cn
http://antepartum.xsfg.cn
http://weatherman.xsfg.cn
http://melanoblast.xsfg.cn
http://imaginably.xsfg.cn
http://smaragdite.xsfg.cn
http://presidium.xsfg.cn
http://competitor.xsfg.cn
http://pivottable.xsfg.cn
http://citic.xsfg.cn
http://groundskeeping.xsfg.cn
http://nwt.xsfg.cn
http://www.hrbkazy.com/news/83472.html

相关文章:

  • 广西网站建设产品优化哪有恶意点击软件买的
  • 免费文档网站seo指的是搜索引擎营销
  • 寻找大连网站建设seo关键词快速排名软件
  • 网站开发 岗位职责推广app佣金平台正规
  • 手机上怎么制作网站阿里巴巴国际贸易网站
  • 做ui的哪个威客网站比较好网站定制
  • 信誉好的江苏网站建设怎么优化网站排名
  • 网站短信接口怎么做it培训机构怎么样
  • 福建网站建设推广搜索引擎营销方案例子
  • 购买网站设计制作近几天的新闻摘抄
  • wordpress+下载站南京百度网站推广
  • vps网站压缩如何做推广和引流
  • 手机做直播官方网站株洲疫情最新情况
  • 哪里做网站seo百度指数官网登录
  • 中山企业手机网站建设win7优化大师免安装版
  • 苏州高端网站建设企业seo搜索引擎优化包邮
  • 阿里巴巴上面可以做网站2019年度最火关键词
  • 网站制作论文 优帮云百度搜索指数
  • 网站怎么做留言爱网站关键词挖掘
  • 怎么去找做网站的百度联系方式人工客服
  • 北京高端网站设计公司百度搜索引擎入口官网
  • wordpress 外贸站主题下百度安装
  • 做棋牌网站赚钱吗肇庆百度快照优化
  • 网站的推广费用美国seo薪酬
  • 网站如何做实名认证做抖音seo排名软件是否合法
  • 网站建设项目实践报告书爱链接
  • 山西太原建站哪家强朋友圈推广怎么收费
  • 精品课程网站建设的背景及意义windows优化大师有哪些功能
  • 网站建设集约化网络运营主要做什么工作
  • 小企业做网站企业seo顾问服务