摘要:
想到MS在很多年前还推过一个F#,试着用它来写一下TGDZ Calc, 如下 点击查看代码 let GetBaseYear year = let mutable b=0 if year>0 then b <- 4 else b <- -57 while b>year do b <- b-60 whi 阅读全文
摘要:
学了那么多语言来写这个函数,甚至连Bash都去试了下,却忘记了用批处理也是可以的。 赶紧加上。 点击查看代码 @echo off set /p input=请输入开始年份: set /a startY=%input% set/p input=请输入结尾年份: set /a endY=%input% 阅读全文