Comment: | 好 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5b9fb5e09f03e8bedc97846089126416 |
User & Date: | 顽雨沉风 on 2024-02-13 05:00:42 |
Other Links: | manifest | tags |
2024-02-13
| ||
05:03 | 好 check-in: 5b69db85ea user: 顽雨沉风 tags: trunk | |
05:00 | 好 check-in: 5b9fb5e09f user: 顽雨沉风 tags: trunk | |
04:51 | 好 check-in: bcf096bd8f user: 顽雨沉风 tags: trunk | |
Deleted single/AlphaKretin_a05 3_07_400.lua version [3b97fa3e5d].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_a07 3_03_-0.lua version [82fb1fff3b].
|
| < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_a12 3_02.lua version [c6dcc24bc0].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_a17 3_03_-3000.lua version [f06543c965].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_a18 3_03_-3000.lua version [dd03471549].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_a24 3_02.lua version [74a29647a9].
|
| < < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_a44 3_09_900.lua version [0ba71460b0].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_a51 3_08_2000.lua version [93bec7aa61].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_a83 3_07_-100.lua version [ec22b939e0].
|
| < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/LV_b36 3_07_-1000.lua version [2952b487fd].
|
| < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/[WCS2006]_a01 3_07_300.lua version [c6aa4ddea5].
|
| < < < < < < < < < < < < < < < < < < < |
Deleted single/[WCS2006]_a03 3_06_400.lua version [7ecc0be00b].
|
| < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/[WCS2006]_a04 3_04_-500.lua version [bee52ed01d].
|
| < < < < < < < < < < < < < < |
Deleted single/[WCS2006]_a08 3_05_-1100.lua version [ab48e4a650].
|
| < < < < < < < < < < < < < < < < < < < < < |
Deleted single/[WCS2006]_a13 3_07_-300.lua version [b9d9a49540].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/[WCS2006]_a20 3_08_100.lua version [9601ae9cec].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/sample_a01 5_06.lua version [6ac156eed8].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/sample_a02 5_08_1700.lua version [9140c305ce].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/sample_a07 4_07_1300.lua version [9a5bf34783].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/「DMI2」_aMagical Scientist 3_05_-3000.lua version [51b21f6190].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a01 3_05_-1800.lua version [0bdc909a32].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a02 3_07.lua version [68e81fe047].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a52 3_07_-500.lua version [90468ab20b].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a53 3_09_300.lua version [11d8b687f3].
|
| < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a58 5_06_-1600.lua version [d2fb103c8f].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a72 3_07_-300.lua version [56e09ec939].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a77 5_08_2800.lua version [2b45f5134d].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a78 5_02_1100.lua version [859282c107].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a79 5_05_1400.lua version [167b400e4e].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a80 5_06_-900.lua version [545fc8c1ff].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a83 4_06_-300.lua version [b68927866c].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a98 3_09_400.lua version [19091e9eca].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_a99 3_05_200.lua version [258abd59fc].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c01 4_01_-3200.lua version [35b5073817].
|
| < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c02 4_01.lua version [2e05404265].
|
| < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c03 4_02.lua version [89480bbf06].
|
| < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c04 4_09_-400.lua version [b8eb74b17f].
|
| < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c05 4_00.lua version [a1e7f7b11b].
|
| < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c06 4_02.lua version [84fd385c2c].
|
| < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c07 4_03.lua version [6fbc2a4d4e].
|
| < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c08 4_02.lua version [28ac2acdf0].
|
| < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c09 4_03.lua version [345239c0f4].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c10 4_03.lua version [f9f3496cac].
|
| < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c11 5_01.lua version [af97c30b7e].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c12 4_03.lua version [05daa4025f].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c13 4_02_-1900.lua version [7d9893389d].
|
| < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c14 4_02.lua version [c739266e44].
|
| < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c15 4_04.lua version [b698a48174].
|
| < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c16 4_03.lua version [8ffdf311da].
|
| < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c17 4_01.lua version [8ec82f985d].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c18 4_03.lua version [0b471cf327].
|
| < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c19 4_03_-2500.lua version [fdd37c7dba].
|
| < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c20 4_06_-0.lua version [199d194fee].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c21 4_02_-2100.lua version [8b4fb8bb91].
|
| < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c22 4_02.lua version [8dd5ecccf0].
|
| < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c23 4_05_-3900.lua version [3855fd32ea].
|
| < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c24 4_04_-1700.lua version [5d1ee1465c].
|
| < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c25 4_06_-100.lua version [ebcb3dc1ea].
|
| < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c26 4_05_-200.lua version [0626f84876].
|
| < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c28 4_06.lua version [1a470c3ed8].
|
| < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c29 4_09_-3900.lua version [d5a5d11828].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c30 4_06_-1700.lua version [640352a633].
|
| < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c31 4_08_-400.lua version [a68118ff7a].
|
| < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c46 4_06_900.lua version [c84e823d79].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c47 4_08_-7000.lua version [dcd4e771d9].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c49 3_06_1100.lua version [8ec6529686].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c50 4_01.lua version [52dfb01b00].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c51 5_06_-400.lua version [0488bfbc92].
|
| < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_c53 5_08_800.lua version [7f62866de2].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f01 3_05_800.lua version [37c6a05bd1].
|
| < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f02 3_07_-0.lua version [28b65c6f52].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f03 3_05_-300.lua version [c8f680bcf5].
|
| < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f04 3_05_-300.lua version [15db3f8f35].
|
| < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f05 3_09_-600.lua version [18600da405].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f09 3_09_-900.lua version [cd6ee7e142].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f11 3_09_-700.lua version [d8c0ae02d8].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f12 3_06_-800.lua version [8a39285eb7].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f19 3_09_300.lua version [15013d2ab9].
|
| < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f23 5_07_-200.lua version [fc5751d10f].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f24 3_07_0.lua version [117d76a38f].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f28 3_08_-600.lua version [3b516d6814].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted single/枯岳说书人_f29 4_07_-300.lua version [efb66d2270].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Modified 残局文料/lua_lib/常用库.lua from [64f4882dea] to [0cddb2e1d1].
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | local s = {} local 简文件库 = require("lfs") local ffi = require("ffi") --~ 排 --~ 办排中值的能 --~ 入参2 --~ 入参3 --~ 入参4 function s.历排(o1_0, o1, o2, o3, o4) local k1_0 --~ 集排 k1_0 = {} for o5 = 1, #o1_0 do k1_0[#k1_0 + 1] = o1(o1_0[o5], o2, o3, o4) end return k1_0 end --~ 文 --~ 历文的能 --~ 入参2 --~ 入参3 function s.历文(o1, o2, o3, o4) local k1_0 --~ 集排 k1_0 = {} for o5 in o2(o1, o3, o4) do k1_0[#k1_0 + 1] = o5 end return k1_0 end --~ 排 --~ 能 function s.历排取一(o1_0, o1) local k1 for o2 = 1, #o1_0 do --~ 值 k1 = s.历排取一的模(k1, o1_0[o2], o1) end return k1 end --~ 值 --~ 排中值 function s.历排取一的模(o1, o2, o3) if o1 == nil then return o2 elseif o3(o1, o2) then return o2 else return o1 end end --~ 对 --~ 能 function s.历对取一(o1_0, o1) local k1, k2 for o2, o2_0 in pairs(o1_0) do --~ 键 --~ 值 k1, k2 = s.历对取一的模(k1, k2, o2, o2_0, o1) end return k1, k2 end function s.历对取一的模(o1, o2, o3, o4, o5) if o1 == nil then return o3, o4 elseif o5(o1, o2, o3, o4) then return o3, o4 else return o1, o2 end end function s.历对(o1_0, o1, o2) local k1 local k1_0, k2_0 --~ 对 k1_0 = {} for o3, o2_0 in pairs(o1_0) do --~ 键 --~ 值 k1, k2_0 = o1(o3, o2_0, o2) if k1 then k1_0[k1] = k2_0 else end end return k1_0 end --~ 排中值 --~ 值类 --~ 办值的能 function s.操类(o1_0, o1, o2) if type(o1_0) == o1 then return o2(o1_0) else return o1_0 end end --~ 排中文 --~ 入参2 --~ 入参3 --~ 入参4 function s.全筛文(o1, o2, o3, o4) print(4) if string.find(o1, o2, o3, o4) then return o1 end end --~ 文 --~ 前缀 function s.加前缀(o1, o2) return (o2 or "") .. o1 end --~ 文 --~ 后缀 function s.加后缀(o1, o2) return o1 .. (o2 or "") end --~ 令 function s.办令(o1) print(o1) os.execute(o1) end --~ 文 --~ 前缀 function s.全筛前缀(o1, o2) if string.sub(o1, 1, #o2) == o2 then return o1 end end --~ 文 --~ 后缀 function s.全筛后缀(o1, o2) if string.sub(o1, -#o2) == o2 then return o1 end end --~ 目对 function s.用令行工具操文件(o1_0) local k1_9 --~ 令行排 k1_9 = s.历文(o1_0.文件目, 简文件库.dir) k1_9 = s.历排(k1_9, s.全筛后缀, o1_0.文件类) for o1 = 1, #k1_9 do k1_9[o1] = s.加前缀(k1_9[o1], o1_0.文件目) k1_9[o1] = s.加前缀(k1_9[o1], [["]]) k1_9[o1] = s.加后缀(k1_9[o1], [["]]) k1_9[o1] = s.加前缀(k1_9[o1], o1_0.令行前缀) s.办令(k1_9[o1]) end end --~ 文件路 --~ 式 function s.读文件(o1, o2) local k1 local k1_3 --~ 文件 k1_3 = io.open(o1, o2 or "r") --~ 文 k1 = k1_3:read("a") k1_3:flush() k1_3:close() return k1 end --~ 常量排 function s.加对限(o1_0) table.insert(o1_0, 1, "local k1_0 = {}") table.insert(o1_0, "return k1_0") return table.concat(o1_0, "\n") end --~ 文 --~ 文件路 --~ 式 function s.写文件(o1, o2, o3) local k1_3 --~ 文件 k1_3 = io.open(o2, o3 or "w") k1_3:write(o1) k1_3:flush() k1_3:close() end --~ 文 function s.删左右空白(o1) o1 = string.gsub(o1, "^%s+", "") return string.gsub(o1, "%s+$", "") end --~ 对 --~ 对 function s.连两对(o1_0, o2_0) for o3_0, o4_0 in pairs(o2_0) do o1_0[o3_0] = o4_0 end return o1_0 end --~ 键 --~ 值 function s.修对类(o1_0, o2_0) if tonumber(o1_0) then return tonumber(o1_0), o2_0 else return o1_0, o2_0 end end do --~ 加数 local k1 = 0 function s.递增() k1 = k1 + 1 return k1 end end --~ 左加数 --~ 右加数 function s.加法(o1, o2) return o1 + o2 end --~ 左减数 --~ 右减数 function s.减法(o1, o2) return o1 - o2 end --~ 左乘数 --~ 右乘数 function s.乘法(o1, o2) return o1 * o2 end --~ 左除数 --~ 右除数 function s.除法(o1, o2) return o1 / o2 end --~ 左数 --~ 右数 function s.位和(o1, o2) return bit.band(o1, o2) end --~ 数 --~ 右移几位 function s.位右移(o1, o2) return bit.rshift(o1, o2) end --~ 键 --~ 最大值 --~ 键 --~ 值 function s.筛对中最大值(o1, o2, o3, o4) if o2 < o4 then return true end end --~ 最短键 --~ 值 --~ 键 --~ 值 function s.筛对中最短键(o1, o2, o3, o4) if #o1 > #o3 then return true end end --~ 最短文 --~ 值 function s.筛排中最短文(o1, o2) if #o1 > #o2 then return true end end --~ 内数 function s.to_uint64(o1) local uint64_pointer = ffi.new("uint64_t[1]", o1) return uint64_pointer[0] end --~ 键 --~ 值 --~ 要找的值 function s.全等筛对中值(o1, o2, o3) if o2 == o3 then return o1, o2 else end end return s |
Modified 残局文料/lua_lib/游戏王_则拟器_原版_卡档.lua from [e9a26816d2] to [a6b48eeccb].
1 2 3 4 | local 字集库 = require("u8_to_a") local 档库 = require("lsqlite3") local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文")) local 对库 = require(字集库.u8_to_a("算机_程语_月_基类_表_对")) | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | local 字集库 = require("u8_to_a") local 档库 = require("lsqlite3") local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文")) local 对库 = require(字集库.u8_to_a("算机_程语_月_基类_表_对")) local s = {} local 卡档 --~ 卡编 function s.取卡对(o1) local k1_0, k2_0 --~ 卡文对 k1_0 = s.取卡文(o1) --~ 卡数据对 k2_0 = s.取卡数据(o1) return 对库.连两对(k1_0, k2_0) end --~ 卡编 function s._取卡对(o1, o2) for o1_4 in 卡档:nrows(文库.连(o2, o1)) do return o1_4 end end do local k1 --~ 模 k1 = "select * from texts where id = " --~ 卡编 function s.取卡文(o1) return s._取卡对(o1, k1) end end do local k1 --~ 模 k1 = "select * from datas where id = " --~ 卡编 function s.取卡数据(o1) return s._取卡对(o1, k1) end end --~ 卡档路 function s.启卡档(o1) 卡档 = 档库.open(o1) end return s |
Modified 残局文料/lua_lib/游戏王_则拟器_原版_残局_卡_全筛.lua from [4ab22a4569] to [43a24d6dfd].
1 2 | local 字集库 = require("u8_to_a") local 位算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_位算")) | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | local 字集库 = require("u8_to_a") local 位算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_位算")) local s = {} local TYPE_MONSTER = 0x1 local TYPE_SPELL = 0x2 local TYPE_TRAP = 0x4 local TYPE_EFFECT = 0x20 local TYPE_PENDULUM = 0x1000000 local 有效果卡的类排 = { TYPE_SPELL , TYPE_TRAP , TYPE_EFFECT } local 无效果灵摆怪兽排 = { 28363749 --火蛋白石头龙头领 , 19474136 --曼陀林草龙 , 17390179 --闪光之骑士 , 83980492 --铜锣龙 } --~ 卡对 function s.筛有效果卡(o1_0) for o1 = 1, #有效果卡的类排 do if 位算库.位和(有效果卡的类排[o1], o1_0.type) == 0 then else return o1_0 end end if 位算库.位和(TYPE_PENDULUM, o1_0.type) == 0 then else if 无效果灵摆怪兽排[o1_0.id] then else return o1_0 end end end --~ 卡对 function s.筛怪兽卡(o1_0) if 位算库.位和(TYPE_MONSTER, o1_0.type) == 0 then else return o1_0 end end --~ 卡对 function s.筛攻击力(o1_0) return o1_0.atk end return s |
Modified 残局文料/lua_lib/算机_基统_窗群_文件系_小文件_写.lua from [4a2c3d3769] to [65e1fb33f1].
|
| | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 | local s = {} --~ 文 --~ 文件路 --~ 式 function s.写文件(o1, o2, o3) local k1_3 --~ 文件 k1_3 = io.open(o2, o3 or "w") k1_3:write(o1) k1_3:flush() k1_3:close() end return s |
Modified 残局文料/lua_lib/算机_基统_窗群_文件系_小文件_读.lua from [7b1ebd730f] to [2aaaa1e959].
|
| | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | local s = {} --~ 文件路 --~ 式 function s.读文件(o1, o2) local k1 local k1_3 --~ 文件 k1_3 = io.open(o1, o2 or "r") --~ 文 k1 = k1_3:read("a") k1_3:flush() k1_3:close() return k1 end return s |
Modified 残局文料/lua_lib/算机_理器_通用_字节.lua from [d3597d5255] to [2d497ffaa3].
1 | local ffi = require("ffi") | | | | | 1 2 3 4 5 6 7 8 | local ffi = require("ffi") local s = {} --~ 内数 function s.to_uint64(o1) local uint64_pointer = ffi.new("uint64_t[1]", o1) return uint64_pointer[0] end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_数.lua from [7bddfd0dc4] to [a86c73f2f0].
1 2 3 4 | local 字集库 = require("u8_to_a") local 基算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_基算")) local math = math local string = string | | | | | | | | | | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | local 字集库 = require("u8_to_a") local 基算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_基算")) local math = math local string = string local s = {} -- 指数 --~ 左加数 --~ 右加数 function s.指数(o1, o2, o3) local k1 if o3 then --~ 指数次 k1 = 基算库.除法(o2, o3) return o1 ^ k1 else return o1 ^ o2 end end -- 指数次 --~ 数 --~ 指数底 function s.指数次(o1, o2) local k1 --~ 指数次 k1 = math.log(o1) / math.log(o2) return k1 end --~ 数 function s.二底指数次(o1) local k1 --~ 指数次 _, k1 = math.frexp(o1) return k1 end -- 向大取整和向小取整 --~ 数 function s.向小取整(o1) return math.floor(o1) end -- 几位整数和几位小数 --~ 数 --~ 几位整数 function s.几位整数(o1, o2) return string.format("%0" .. o2 .. "d", o1) end --~ 数 --~ 几位小数 function s.几位小数(o1, o2) return string.format("%." .. o2 .. "f", o1) end -- 正数与负数 --~ 数 function s.正数(o1) if o1 >= 0 then return o1 else return -o1 end end --~ 数 function s.负数(o1) if o1 >= 0 then return -o1 else return o1 end end -- 递加 do local k1_0 --~ 数表 k1_0 = {} function s.递加(o1) if k1_0[o1] then else k1_0[o1] = 0 end k1_0[o1] = k1_0[o1] + 1 return k1_0[o1] end end -- 最值 function s.最大值() return math.huge end function s.最小值() local k1 --~ 最大值 k1 = s.最大值() return s.负数(k1) end --~ 数 function s.是否最值(o1) if o1 == s.最大值() or o1 == s.最小值() then return true else end end --~ 数 function s.是否无效值(o1) if o1 == o1 then else return true end end --~ 数 function s.是否错值(o1) local k1, k2 --~ 是否最值 k1 = s.是否最值(o1) --~ 是否无效值 k2 = s.是否无效值(o1) return k1 or k2 end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_数_位算.lua from [0c39de34a5] to [993ea5775b].
1 | local bit = bit | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | local bit = bit local s = {} -- 和与或 --~ 左数 --~ 右数 function s.位和(o1, o2) return bit.band(o1, o2) end -- 左移与右移 --~ 数 --~ 右移几位 function s.位右移(o1, o2) return bit.rshift(o1, o2) end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_数_基算.lua from [14d957724e] to [c13669112e].
|
| | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | local s = {} -- 加减 --~ 左加数 --~ 右加数 function s.加法(o1, o2) return o1 + o2 end --~ 左减数 --~ 右减数 function s.减法(o1, o2) return o1 - o2 end -- 乘除 --~ 左乘数 --~ 右乘数 function s.乘法(o1, o2) return o1 * o2 end --~ 左除数 --~ 右除数 function s.除法(o1, o2) return o1 / o2 end -- 向外与向内 --~ 左加数 --~ 右加数 function s.向外加(o1, o2) if o1 >= 0 then return s.加法(o1, o2) else return s.减法(o1, o2) end end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_文.lua from [53c1e6c28e] to [8234c85240].
1 | local string = string | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | local string = string local s = {} function s.连(o1, o2, o3, o4, o5, o6, o7, o8, o9) return o1 .. (o2 or "") .. (o3 or "") .. (o4 or "") .. (o5 or "") .. (o6 or "") .. (o7 or "") .. (o8 or "") .. (o9 or "") end --~ 排中文 --~ 入参2 --~ 入参3 --~ 入参4 function s.全筛文(o1, o2, o3, o4) --~ print(4) if string.find(o1, o2, o3, o4) then return o1 end end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_文_前缀.lua from [bddb0917c1] to [c563093802].
1 | local string = string | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | local string = string local s = {} -- 加与删 --~ 文 --~ 前缀 function s.加前缀(o1, o2) return (o2 or "") .. o1 end -- 全筛 --~ 文 --~ 前缀 function s.全筛前缀(o1, o2) if string.sub(o1, 1, #o2) == o2 then return o1 end end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_文_后缀.lua from [2f0eda9a09] to [1af10e52ff].
1 | local string = string | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | local string = string local s = {} -- 加与删 --~ 文 --~ 后缀 function s.加后缀(o1, o2) return o1 .. (o2 or "") end -- 全筛 --~ 文 --~ 后缀 function s.全筛后缀(o1, o2) if string.sub(o1, -#o2) == o2 then return o1 end end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_文_取全.lua from [2d644ec655] to [065d91c824].
|
| | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | local s = {} -- 启 --~ 文 --~ 历文的能 --~ 入参2 --~ 入参3 function s.历文(o1, o2, o3, o4) local k1_0 --~ 集排 k1_0 = {} for o5 in o2(o1, o3, o4) do k1_0[#k1_0 + 1] = o5 end return k1_0 end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_对_取一.lua from [81fba9566d] to [18dc555da1].
|
| | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | local s = {} -- 启 --~ 对 --~ 能 function s.历对(o1_0, o1) local k1, k2 for o2, o3 in pairs(o1_0) do --~ 键 --~ 值 k1, k2 = s.模(k1, k2, o2, o3, o1) end return k1, k2 end -- 模 --~ 键 --~ 值 --~ 对中键 --~ 对中值 --~ 能 function s.模(o1, o2, o3, o4, o5) if o1 == nil then return o3, o4 elseif o5(o1, o2, o3, o4) then return o3, o4 else return o1, o2 end end -- 最短 --~ 最短键 --~ 值 --~ 键 --~ 值 function s._筛最短键(o1, o2, o3, o4) if #o1 > #o3 then return true end end --~ 对 function s.筛最短键(o1_0) return s.历对(o1_0, s._筛最短键) end -- 最大 --~ 键 --~ 最大值 --~ 键 --~ 值 function s._筛最大值(o1, o2, o3, o4) if o2 < o4 then return true end end --~ 对 function s.筛最大值(o1_0) return s.历对(o1_0, s._筛最大值) end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_对_取全.lua from [cf160cb7ef] to [356b3ac58b].
|
| | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | local s = {} -- 全与局 --~ 对 --~ 能 --~ 入参3 function s.历对(o1_0, o1, o2) local k1, k2 local k1_0 --~ 对 k1_0 = {} for o3, o4 in pairs(o1_0) do --~ 键 --~ 值 k1, k2 = o1(o3, o4, o2) if k1 then k1_0[k1] = k2 else end end return k1_0 end --~ 对 --~ 能 --~ 入参2 --~ 入参3 function s.历值(o1_0, o1, o2, o3) local k1_0 --~ 对 k1_0 = {} for o4, o5 in pairs(o1_0) do k1_0[o4] = o1(o5, o2, o3) end return k1_0 end --~ 键 --~ 值 --~ 要找的值 function s.全等筛值(o1, o2, o3) if o2 == o3 then return o1, o2 else end end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_排_取一.lua from [9df7c4b8f8] to [e41b5059e0].
|
| | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | local s = {} -- 启 --~ 排 --~ 能 function s.历排(o1_0, o1) local k1 for o2 = 1, #o1_0 do --~ 值 k1 = s.模(k1, o1_0[o2], o1) end return k1 end -- 模 --~ 值 --~ 排中值 function s.模(o1, o2, o3) if o1 == nil then return o2 elseif o3(o1, o2) then return o2 else return o1 end end -- 最短 --~ 最短文 --~ 值 function s._筛最短文(o1, o2) if #o1 > #o2 then return true end end --~ 排 function s.筛最短文(o1_0) return s.历排(o1_0, s._筛最短文) end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_排_取全.lua from [072e9eeaba] to [658f7a4cb9].
|
| | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | local s = {} -- 返旧与返新与不返 -- 排数 --~ 排 --~ 办排中值的能 --~ 入参2 --~ 入参3 --~ 入参4 function s.历排(o1_0, o1, o2, o3, o4) local k1_0 --~ 集排 k1_0 = {} for o5 = 1, #o1_0 do k1_0[#k1_0 + 1] = o1(o1_0[o5], o2, o3, o4) end return k1_0 end --~ 排 --~ 排 --~ 办排中值的能 --~ 入参3 --~ 入参4 --~ 入参5 function s.历二排(o1_0, o2_0, o1, o2, o3, o4) local k1_0 --~ 集排 k1_0 = {} for o5 = 1, #o1_0 do k1_0[#k1_0 + 1] = o1(o1_0[o5], o2_0[o5], o2, o3, o4) end return k1_0 end --~ 排 --~ 排 --~ 排 --~ 办排中值的能 --~ 入参4 --~ 入参5 --~ 入参6 function s.历三排(o1_0, o2_0, o3_0, o1, o2, o3, o4) local k1_0 --~ 集排 k1_0 = {} for o5 = 1, #o1_0 do k1_0[#k1_0 + 1] = o1(o1_0[o5], o2_0[o5], o3_0[o5], o2, o3, o4) end return k1_0 end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_排_取联.lua from [c35c09e3a7] to [061505a7b9].
|
| | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | local s = {} -- 启 --~ 排 --~ 办排中值的能 --~ 入参2 --~ 入参3 function s.历排(o1_0, o1, o2, o3, o4) local k1 --~ 和 k1 = o1_0[1] or 0 for o5 = 2, #o1_0 do k1 = o1(k1, o2(o1_0[o5], o3, o4)) end return k1 end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_排_相加.lua from [2fcef369fd] to [fec9fb1630].
|
| | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | local s = {} -- 启 -- 启 --~ 排 --~ 办排中值的能 --~ 入参2 --~ 入参3 --~ 入参4 function s.历排(o1_0, o1, o2, o3, o4) local k1 --~ 和 k1 = 0 for o5 = 1, #o1_0 do k1 = k1 + o1(o1_0[o5], o2, o3, o4) end return k1 end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_传能_基类.lua from [f8ecc960f5] to [38bbf2e477].
|
| | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 | local s = {} -- 启 --~ 值 --~ 值类 --~ 办值的能 function s.操类(o1, o2, o3) if type(o1) == o2 then return o3(o1) else return o1 end end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_能_返参.lua from [494a520ea5] to [457f07f678].
|
| | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 | local s = {} -- 数量 --~ 入参1 function s.一参(o1) return o1 end --~ 入参1 --~ 入参2 function s.二参(o1, o2) return o1, o2 end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_表_对.lua from [09d79da114] to [1fb198b937].
1 2 3 | local 字集库 = require("u8_to_a") local 返参库 = require(字集库.u8_to_a("算机_程语_月_基类_能_返参")) local 历对库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_对_取全")) | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | local 字集库 = require("u8_to_a") local 返参库 = require(字集库.u8_to_a("算机_程语_月_基类_能_返参")) local 历对库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_对_取全")) local s = {} -- 连对 --~ 对 --~ 对 function s.连两对(o1_0, o2_0) local k1_0 --~ 合对 k1_0 = 历对库.历对(o1_0, 返参库.二参) for o1, o2 in pairs(o2_0) do k1_0[o1] = o2 end return k1_0 end -- 对长 --~ 对 function s.对长(o1_0) local k1 --~ 对长 k1 = 0 for _ in pairs(o1_0) do k1 = k1 + 1 end return k1 end return s |
Modified 残局文料/lua_lib/算机_程语_月_基类_表_排_基类_数.lua from [8e6a120b6d] to [3ede250a51].
1 2 3 4 5 6 | local 字集库 = require("u8_to_a") local 历排取联库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_排_取联")) local 返参库 = require(字集库.u8_to_a("算机_程语_月_基类_能_返参")) local 基算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_基算")) local 历排库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_排_取全")) local 数库 = require(字集库.u8_to_a("算机_程语_月_基类_数")) | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | local 字集库 = require("u8_to_a") local 历排取联库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_排_取联")) local 返参库 = require(字集库.u8_to_a("算机_程语_月_基类_能_返参")) local 基算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_基算")) local 历排库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_排_取全")) local 数库 = require(字集库.u8_to_a("算机_程语_月_基类_数")) local s = {} --~ 排 function s.总和(o1_0) return 历排取联库.历排(o1_0, 基算库.加法, 返参库.一参) end --~ 排 function s.均值(o1_0) local k1 --~ 总和 k1 = s.总和(o1_0) return 基算库.除法(k1, #o1_0) end --~ 排 --~ 标准值 function s.方差(o1_0, o1) local k1, k2 local k1_0 --~ 标准值 k1 = o1 or s.均值(o1_0) --~ 排,用于算方差 k1_0 = 历排库.历排(o1_0, 基算库.减法, k1) k1_0 = 历排库.历排(k1_0, 数库.指数, 2) --~ 方差 k2 = 基算库.除法(s.总和(k1_0), #k1_0) return k2 end --~ 排 --~ 标准值 function s.标准差(o1_0, o1) local k1 --~ 方差 k1 = s.方差(o1_0, o1) return 数库.指数(k1, 1, 2) end --~ 排 --~ 标准值 function s.均差(o1_0, o1) local k1, k2 local k1_0 --~ 标准值 k1 = o1 or s.均值(o1_0) --~ 排,用于算均差 k1_0 = 历排库.历排(o1_0, 基算库.减法, k1) k1_0 = 历排库.历排(k1_0, 数库.正数) --~ 均差 k2 = 基算库.除法(s.总和(k1_0), #k1_0) return k2 end return s |
Modified 残局文料/lua_lib/算机_程语_月_注_删_不虑字串.lua from [fb7338cbcc] to [ccc52a6c1d].
1 2 3 | local 字集库 = require("u8_to_a") local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文")) local string = string | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | local 字集库 = require("u8_to_a") local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文")) local string = string local s = {} -- 单行注与多行注 --~ 文 function s.删注(o1) o1 = s.删多行注(o1) return s.删单行注(o1) end do local k1 --~ 模 k1 = 文库.连("%-%-", "%[", "(=*)", "%[", ".-", "%]", "%1", "%]") --~ 文 function s.删多行注(o1) return string.gsub(o1, k1, "") end end do local k1 --~ 模 k1 = 文库.连("%-%-", "[^\n]*") --~ 文 function s.删单行注(o1) return string.gsub(o1, k1, "") end end return s |