Differences From Artifact [fb0e89b47a]:
- File 残局文料/lua_lib/算机_程语_月_基类_数.lua — part of check-in [764c98fc54] at 2024-02-06 13:55:03 on branch trunk — 加限 (user: 顽雨沉风, size: 210) [annotate] [blame] [check-ins using]
To Artifact [e6783b3394]:
- File 残局文料/lua_lib/算机_程语_月_基类_数.lua — part of check-in [420d28e057] at 2024-02-06 13:55:46 on branch trunk — 实现 (user: 顽雨沉风, size: 374) [annotate] [blame] [check-ins using]
- File 残局文料/lua_lib/算机_程语_月_基类_数_基.lua — part of check-in [77f6e5c564] at 2024-02-08 12:35:22 on branch trunk — 慢慢来 (user: 顽雨沉风, size: 374) [annotate] [blame] [check-ins using]
- File 残局文料/lua_lib/算机_程语_月_基类_数_基算.lua — part of check-in [77f6e5c564] at 2024-02-08 12:35:22 on branch trunk — 慢慢来 (user: 顽雨沉风, size: 374) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + + + + + + + + + + | local d = {} -- 加减 --~ 左加数 --~ 右加数 function d.加法(o1, o2) return o1 + o2 end --~ 左减数 --~ 右减数 function d.减法(o1, o2) return o1 - o2 end -- 乘除 --~ 左乘数 --~ 右乘数 function d.乘法(o1, o2) return o1 * o2 end --~ 左除数 --~ 右除数 function d.除法(o1, o2) return o1 / o2 end return d |