Differences From Artifact [c14d356138]:
- File 残局文料/lua_lib/算机_程语_月_基类_数.lua — part of check-in [62e417ee6c] at 2024-02-10 05:58:05 on branch trunk — 慢慢来 (user: 顽雨沉风, size: 966) [annotate] [blame] [check-ins using]
To Artifact [91d397fb8e]:
- File 残局文料/lua_lib/算机_程语_月_基类_数.lua — part of check-in [c3565d121c] at 2024-02-10 11:32:34 on branch trunk — 慢慢来 (user: 顽雨沉风, size: 1176) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
43 44 45 46 47 48 49 50 51 | -- 绝对值 function d.绝对值(o1) if o1 > 0 then return o1 else return d.负数(o1) end end return d | > > > > > > > > > > > > > > | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | -- 绝对值 function d.绝对值(o1) if o1 > 0 then return o1 else return d.负数(o1) end end -- 递加 do local k1_0 --~ 数表 k1_0 = {} function d.递加(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 return d |