function sort(...) a = {...} b = nil for j=1,#a-1 do for i=1,#a-j do if(a[i]>a[i+1]) then b = a[i+1] a[i+1] = a[i] a[i] = b end end end ret
print("**********字符串************") str = "双引号字符串" str2 = '单引号字符串' --获取字符串的长度 print("**********字符串长度************") s = "aBcdEfG字符串" --一个汉字占3个长度 --英文字符
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; //知识点 //字典 //协程 //AB包相关API //委托 //lambda表达式
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public abstract class ObjBase { } publ