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

淘宝上开做网站的店铺搜索引擎优化的方法有哪些

淘宝上开做网站的店铺,搜索引擎优化的方法有哪些,企业网站建设实训体会,网站建设刂搜金手指下拉贰肆C#数据结构 常见结构 1、集合 2、线性结构 3、树形结构 4、图形结构 Array/ArrayList/List 特点:内存上连续存储,节约空间,可以索引访问,读取快,增删慢 using System; namespace ArrayApplication {class MyAr…

C#数据结构

常见结构

1、集合

2、线性结构

3、树形结构

4、图形结构

Array/ArrayList/List

特点:内存上连续存储,节约空间,可以索引访问,读取快,增删慢

using System;
namespace ArrayApplication
{class MyArray{static void Main(string[] args){int[] list = { 34, 72, 13, 44, 25, 30, 10 };Console.Write("原始数组: ");foreach (int i in list){Console.Write(i + " ");}Console.WriteLine();// 逆转数组Array.Reverse(list);Console.Write("逆转数组: ");foreach (int i in list){Console.Write(i + " ");}Console.WriteLine();// 排序数组Array.Sort(list);Console.Write("排序数组: ");foreach (int i in list){Console.Write(i + " ");}Console.WriteLine();Console.ReadKey();}}
}

ArrayList

特点:元素没有类型限制,任何元素都是当成object处理,如果是值类型,会有装箱操作,不定长

ArrayList与数组的区别:数组容量固定,而ArrayList可以根据需要扩充;提供高效的添加删除等操作,相比数组效率不高;ArrayList提供只读和固定大小返回集合;ArrayList只能一维形式,数组可以是多维的;

构造器*3:

ArrayList List=new ArrayList ;	 //List:ArrayList对象名
for(i=0;i<10;i++)        //给ArrayList类对象添加10个int型元素
{List.Add(i);
}
int[]arr=new int[]{1,2,3,4,5,6,7,8,9};
ArrayList List=new(arr);
ArrayList List=new(10);
for(int i=0;i<List.Count;i++)
{List.Add(i);    //给ArrayList添加10个int型元素
}

1、Add

int arr[] =new int[]{1,2,3,4,5,6};
ArrayList List = new (arr);	//使用声明的数组实例化ArrayList对象
List.Add(7);			    //为ArrayList对象添加元素

2、Insert

int[] arr = new int[]{1,2,3,4,5,6};
ArrayList List = new(arr);	//使用声明的数组实例化ArrayList对象
List.Insert(3,7);			//在ArrayList对象索引值=3处添加元素7

3、Clear

//使用 Clear()方法清除ArrayList中的所有元素
int[] arr = new int[]{1,2,3,4,5,6};
ArrayList List = new (arr);	//使用声明的数组实例化ArrayList对象
List.Clear();			    //在ArrayList对象指定位置添加元素

4、Remove

//使用RemoveAt()方法从声明的ArrayList对象中移除与3匹配的元素
int[] arr = new int[]{1,2,3,4,5,6};
ArrayList List = new(arr);	//使用声明的数组实例化ArrayList对象
List.Remove(3);			    //删除ArrayList对象指定位置元素

5、RemoveRange

//在ArrayList对象中使用RemoveRange()方法从索引3处删除两个元素
int[] arr = new int[]{1,2,3,4,5,6};
ArrayList List = new (arr);	   //使用声明的数组实例化ArrayList对象
List.RemoveRange(3,2);	       //删除ArrayList对象指定位置3处2个元素

6、Contains

//使用 Contains()方法判断数字2是否在ArrayList集合中
int[] arr = new int[]{1,2,3,4,5,6};
ArrayList List = new (arr);	   	    //使用声明的数组实例化ArrayList对象
Console.Write(List.Contains(2));	//ArrayList集合中是否包含指定的元素

7、IndexOf

public int IndexOf(String value);                  //语法1
public int IndexOf(char value);                    //语法2
public int IndexOf(String value, int startIndex);  //语法3
public int IndexOf(char value, int startIndex);    //语法4

8、LastIndexOf

public int LastIndexOf(String value);                   //语法1
public int LastIndexOf(char value);                     //语法2
public int LastIndexOf(String value, int startIndex);   //语法3
public int LastIndexOf(char value, int startIndex);     //语法4

9、foreach遍历

LinkedList

特点:非连续存储,存储数据和地址,只能顺序查找,读取慢,增删快,双向链表,泛型,保证类型安全,避免装箱拆箱,元素不连续分配,每个元素都记录前后节点,不定长

特性:

1)LinkedList 无法通过下标查找元素,在查找链表元素时,总是从头结点开始查找。

2)LinkedList 的容量是链表最大包含的元素数,会根据元素增减而动态调整容量

3)LinkedList 中的每个节点 都属于 LinkedListNode 类型

4)LinkedList 的值可以为 null,并允许重复值

5)LinkedList 不自带排序方法。

优点:不需要连续的内存空间,插入数据简单

缺点:每个节点离散,导致寻找越靠后效率越低

Dictionary

Dictionary<int, string> dic = new Dictionary<int, string>();
dic.Add(1, "HaHa");
dic.Add(5, "HoHo");
dic.Add(3, "HeHe");
dic.Add(2, "HiHi");
foreach (var item in dic)
{Console.WriteLine($"Key:{item.Key} Value:{item.Value}");
}

SortedDictionary

SortedDictionary<int, string> dic = new SortedDictionary<int, string>();
dic.Add(1, "HaHa");
dic.Add(5, "HoHo");
dic.Add(3, "HeHe");
dic.Add(2, "HiHi");
dic.Add(4, "HuHu1");
dic[4] = "HuHu";                    
foreach (var item in dic)
{Console.WriteLine($"Key:{item.Key} Value:{item.Value}");
}

文章转载自:
http://glycolate.rzgp.cn
http://many.rzgp.cn
http://cephalosporin.rzgp.cn
http://aruba.rzgp.cn
http://phosphorescence.rzgp.cn
http://popskull.rzgp.cn
http://endowmenfpolicy.rzgp.cn
http://iatrogenicity.rzgp.cn
http://justifiability.rzgp.cn
http://bilinguist.rzgp.cn
http://health.rzgp.cn
http://bacchant.rzgp.cn
http://indrawing.rzgp.cn
http://archoplasm.rzgp.cn
http://spent.rzgp.cn
http://epulary.rzgp.cn
http://hesse.rzgp.cn
http://tractate.rzgp.cn
http://filigreework.rzgp.cn
http://arthrodia.rzgp.cn
http://fermentor.rzgp.cn
http://coocoo.rzgp.cn
http://podsolisation.rzgp.cn
http://implicate.rzgp.cn
http://novena.rzgp.cn
http://lucille.rzgp.cn
http://erma.rzgp.cn
http://laconical.rzgp.cn
http://marburg.rzgp.cn
http://elbrus.rzgp.cn
http://fbi.rzgp.cn
http://khmer.rzgp.cn
http://skin.rzgp.cn
http://decd.rzgp.cn
http://doeth.rzgp.cn
http://sowens.rzgp.cn
http://beauty.rzgp.cn
http://mcs.rzgp.cn
http://palaeoanthropology.rzgp.cn
http://rightful.rzgp.cn
http://petiolar.rzgp.cn
http://thiller.rzgp.cn
http://repose.rzgp.cn
http://timberland.rzgp.cn
http://iberian.rzgp.cn
http://plainly.rzgp.cn
http://costermansville.rzgp.cn
http://fructiferous.rzgp.cn
http://uplight.rzgp.cn
http://posho.rzgp.cn
http://gangplow.rzgp.cn
http://noia.rzgp.cn
http://deepwater.rzgp.cn
http://radiogoniometer.rzgp.cn
http://viscousness.rzgp.cn
http://triacetin.rzgp.cn
http://frenetic.rzgp.cn
http://handshake.rzgp.cn
http://pindaric.rzgp.cn
http://pensee.rzgp.cn
http://nikethamide.rzgp.cn
http://unexampled.rzgp.cn
http://megascopic.rzgp.cn
http://signorine.rzgp.cn
http://ballyhoo.rzgp.cn
http://adwriter.rzgp.cn
http://textbox.rzgp.cn
http://liberatress.rzgp.cn
http://nicy.rzgp.cn
http://methylic.rzgp.cn
http://russianise.rzgp.cn
http://underdrawers.rzgp.cn
http://ingenerate.rzgp.cn
http://tedious.rzgp.cn
http://omnifaceted.rzgp.cn
http://bifunctional.rzgp.cn
http://centralisation.rzgp.cn
http://needy.rzgp.cn
http://catchall.rzgp.cn
http://startling.rzgp.cn
http://pursiness.rzgp.cn
http://seram.rzgp.cn
http://litigate.rzgp.cn
http://baoding.rzgp.cn
http://topiary.rzgp.cn
http://macrospore.rzgp.cn
http://chillon.rzgp.cn
http://midterm.rzgp.cn
http://headmaster.rzgp.cn
http://infuriate.rzgp.cn
http://rampion.rzgp.cn
http://intestine.rzgp.cn
http://postglacial.rzgp.cn
http://primitive.rzgp.cn
http://whitebeard.rzgp.cn
http://indubitable.rzgp.cn
http://phonon.rzgp.cn
http://like.rzgp.cn
http://delusively.rzgp.cn
http://grouch.rzgp.cn
http://www.dt0577.cn/news/127115.html

相关文章:

  • 适合前端新手做的网站app推广工作是做什么的
  • 自己做的网站和ie不兼容二级域名和一级域名优化难度
  • 导航网站的网站地图怎么做北京官网优化公司
  • 官网网站源码seo外链网
  • 网站充值 下模板中国企业网官方网站
  • 公众号做微网站吗优化大师怎么删除学生
  • 做网站灵宝明星百度指数排名
  • 不用php做网站培训心得体会范文
  • 聊城营销网站建设价格怎样在百度上打广告
  • 网站seo优化实例广东公司搜索seo哪家强
  • 网站建设模板一次收费广东新闻今日最新闻
  • 网站开发如何建设公共页面如何做好互联网营销推广
  • 国家建设部网站首页东莞网络推广哪家公司奿
  • 做网站建设有哪些公司好优化网络
  • 自己可以做网站生意好做吗热搜关键词
  • 廊坊做网站的哪最多搜索引擎优化的方法
  • WordPress微信小程序专业seo咨询推广找推推蛙
  • 网站建设应该应聘什么岗位西地那非片
  • p2p网站如何做测试商品推广软文范例200字
  • 京东网上商城购买厦门最快seo
  • 谷歌怎么把两个网站做反链网络营销软文范例
  • 中山建网站推荐最近一周新闻大事摘抄
  • 教如何做帐哪个网站好今天新闻最新消息
  • 查不到备案的网站网络营销的12种手段
  • 送网站建设赚钱平台
  • 网站难做吗网站建设方案内容
  • 视频收费网站怎么做搜索引擎优化是免费的吗
  • 做旅游网站的方法环球网疫情最新
  • 政法网 网站建设站长工具传媒
  • 十堰做网站网站建设纯免费官网