当前位置:   article > 正文

python 节气计算_单独的计算24节气【转】

python获取24节气

import java.util.*;

public class SolarTerm {

public static void main(String[] s) throws Exception {

SolarTerm st = new SolarTerm();

if (s.length == 3) {

System.out.println(st.getSoralTerm(Integer.parseInt(s[0]),

Integer.parseInt(s[1]), Integer.parseInt(s[2])));

}

System.out.println(st.getSoralTerm(2011, 12, 22));

System.out.println(st.getSoralTerm(2011, 12, 24)+"--------");

}

final static long[] STermInfo = new long[] { 0, 21208, 42467, 63836, 85337,

107014, 128867, 150921, 173149, 195551, 218072, 240693, 263343,

285989, 308563, 331033, 353350, 375494, 397447, 419210, 440795,

462224, 483532, 504758 };

private static final String[] SolarTerm = new String[] { "小寒", "大寒", "立春",

"雨水", "惊蛰", "春分", "清明", &

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/978219
推荐阅读
相关标签
  

闽ICP备14008679号