), CONVERT(smalldatetime, SUBSTRING(b.IDCard, , )), ) AS BrithDate_Name, DATEDIFF(year, CONVERT(smalldatetime, SUBSTRING(ISNULL(b.IDCard, ), , )), GETDATE()) AS Age_Name, CASE LEFT(RIGHT(b.IDCard, ), ) % WHEN THEN '男' ELSE '女' END AS Sex_Name, b.IDCa
/*根据出生日期算出年龄*/ function jsGetAge(strBirthday){ var returnAge; var strBirthdayArr=strBirthday.split("-"); var birthYear = strBirthdayArr[0]; var birthMonth = strBirthdayArr[1]; var birthDay = strBirthdayArr[2]; d = new Date(); var nowYear = d.get
完成完整的温度转换程序 while True: a = int(input("如果是华氏转摄氏,请按1\n,如果是摄氏转华氏,请按2\n")) if a==1: h = float(input("请输入华氏温度")) s = (h*1.8)+32 print("{}华氏度转是{}摄氏度".format(h,s)) elif a==2: s1 = float(input("请输入摄氏温度")) h1=(s-32)*5/9 pri