3.5.13其它函数

来源:互联网 发布:淘宝买csgo安全吗34 编辑:程序博客网 时间:2024/06/05 00:36



操作及功能                           对应算子

sort(t):升序排列   tuple_sort

sort_index(t):将元组排序,并返回元组的索引   tuple_sort_index

inverse(t):将元组进行转置变换   tuple_inverse

is_number(v):检测一个值是否是数字    tuple_is_number

number(v):将一个字符串转换成数字    tuple_number

environment(s):环境变量     tuple_environment

ord(a):将字符转换成对应的ASKII值   tuple_ord

chr(a):把ASKII值转换成字符     tuple-chr

ords(s):将字符串转换成ASKII元组   tuple_ords

chrt(i):根据ASKII把元组转换成字符串    tuple_chrt

rand(a):产生随机元组    tuple_rand



0 0