元组:tuple 内部只有两个可以操作的函数[count()/index()],一个是查看一个数据在元组中出现的总数另一个是查看。
一个数据在元组中的位置,外部有一个默认的函数sorted可以针对元组进行排序,排序注意:使用系统默认排序,但是必须保证排序的数据他们的数据类型是一致的!与元组查询相关函数,可以直接操作,如:len()查看元组中元素的个数。
声明元组方式
Name = tuple()
name = (“1”,”2”,”3”)
name = (“1”,)
name(1,)
Count
ASP中Split函数的用法 分割截取字符串看几个例子就能理解了
代码如下:mystr=”1,2,3,4,5″ mystr=split(mystr,”,”) for i=0 to ubound(mystr) response.write mystr(i) next ‘返回值为123456
mystr=”xlei.net/http/student/x/index.asp” mystr=split(mystr,”/http/student”) for i=0 to ubound(mystr) r