QC0101 ·¢±íÓÚ 2022-1-15 12:43:05

ΪʲôһֱÏÔʾ'²»ÊÇÈòÄê'ÄØ£¬¶¨Òå±äÁ¿ÎªÕûÐͺó¾Í²»ÄܱäÁËÂð£¿

number = int(input('ÇëÊäÈëÄê·Ý£º'))
if type(number/4) == type(1) and type(number/100) != type(1):
    print('ÈòÄê')
else:
    if type(number/400) == type(1):
      print('ÈòÄê')
    else:
      print('²»ÊÇÈòÄê')

¶¬Ñ©Ñ©¶¬ ·¢±íÓÚ 2022-1-15 12:43:06

ÅжÏÕû³ý²»ÊÇÓÃtype£¬ÒòΪnumber/4²»ÂÛÊÇ·ñÄܳý¾¡£¬½á¹û¶¼ÊǸ¡µãÊý¡£
ÐèÒªÓà % ÅжÏ

QC0101 ·¢±íÓÚ 2022-1-15 13:29:22

¶¬Ñ©Ñ©¶¬ ·¢±íÓÚ 2022-1-15 13:08
ÅжÏÕû³ý²»ÊÇÓÃtype£¬ÒòΪnumber/4²»ÂÛÊÇ·ñÄܳý¾¡£¬½á¹û¶¼ÊǸ¡µãÊý¡£
ÐèÒªÓà % ÅжÏ

ÇëÎÊΪʲôÉ̶¼ÊǸ¡µãÊýѽ£¿

ɵÑÛ؈ßä ·¢±íÓÚ 2022-1-15 14:13:22

QC0101 ·¢±íÓÚ 2022-1-15 13:29
ÇëÎÊΪʲôÉ̶¼ÊǸ¡µãÊýѽ£¿

{:5_99:}{:5_99:}

1.0 ÊǸ¡µãÊý
1 ÊÇÕûÊý

ÒÔÉÏÁ½¸öÖµ¶¼ÊÇ 1£¬µ«ÊÇÀàÐͲ»Ò»Ñù£¬ÕâÊÇÊýѧ»ù±¾ÖªÊ¶¡£
Ò³: [1]
²é¿´ÍêÕû°æ±¾: ΪʲôһֱÏÔʾ'²»ÊÇÈòÄê'ÄØ£¬¶¨Òå±äÁ¿ÎªÕûÐͺó¾Í²»ÄܱäÁËÂð£¿