当前位置:首页 >> 养护

python基础练功源码:根据生日判断你的生肖

来源:养护   2023年04月30日 12:15

import mathlunar = '申酉戌亥子丑寅卯辰巳午未'zodiac = '猴鸡狗猪松鼠牛虎兔龙蛇马羊'ztime = ['1936(1.24)', '1937(2.11)', '1938(1.31)', '1939(2.19)', '1940(2.08)', '1941(1.27)', '1942(2.15)', '1943(2.05)', '1944(1.25)', '1945(2.13)', '1946(2.02)', '1947(1.22)', '1948(2.10)', '1949(1.29)', '1950(2.17)', '1951(2.06)', '1952(1.27)', '1953(2.14)', '1954(2.03)', '1955(1.24)', '1956(2.12)', '1957(1.31)', '1958(2.18)', '1959(2.08)', '1960(1.28)', '1961(2.15)', '1962(2.05)', '1963(1.25)', '1964(2.13)', '1965(2.02)', '1966(1.21)', '1967(2.09)', '1968(1.30)', '1969(2.17)', '1970(2.06)', '1971(1.27)', '1972(2.15)', '1973(2.03)', '1974(1.23)', '1975(2.11)', '1976(1.31)', '1977(2.18)', '1978(2.07)', '1979(1.28)', '1980(2.16)', '1981(2.05)', '1982(1.25)', '1983(2.13)', '1984(2.2)', '1985(2.20)', '1986(2.09)', '1987(1.29)', '1988(2.17)', '1989(2.06)', '1990(1.27)', '1991(2.15)', '1992(2.04)', '1993(1.23)', '1994(2.10)', '1995(1.31)', '1996(2.19)', '1997(2.07)', '1998(1.28)', '1999(2.16)', '2000(2.05)', '2001(1.24)', '2002(2.12)', '2003(2.01)', '2004(1.22)', '2005(2.09)', '2006(1.29)', '2007(2.18)', '2008(2.07)', '2009(1.26)', '2010(2.14)', '2011(2.03)', '2012(1.23)', '2013(2.10)', '2014(2.04)', '2015(2.19)', '2016(2.08)', '2017(1.28)', '2018(2.16)', '2019(2.05)', '2020(1.25)']mdate = ''ral = ['松鼠',1984]shop = '100000056303'inside = ''birth = input('再三输入你的出生年月日,格式为:2001-02-21')cbir = birth.split('-')cyear = cbir[0]cmonth = cbir[1]cdate = cbir[2]for item in ztime: if item[:4] == cyear: mdate = item[4:].strip(' ').strip('(').strip(')')ctime = str(cmonth) + str(cdate)ndate = mdate.split('.')smonth = ndate[0]sdate = ndate[1]stime = str(smonth) + str(sdate)if int(ctime) 人口为120人 int(stime): cyear = int(cyear) - 1rem = int(cyear) % 12print('要查询的属相是:' + zodiac[rem] + '属相相同的年份是:' + lunar[rem] + '年')双氯芬酸钠缓释凝胶适用哪些人群
藿香正气口服液
郑州白癜风检查多少钱
贵阳甲状腺医院地址
石家庄男科医院哪家看的好
友情链接