1.åè¿å¶è½¬äºè¿å¶ä»£ç python
åè¿å¶è½¬äºè¿å¶ä»£ç python
bin( )å½æ°å¯ä»¥ææ´æ°è½¬æ¢ä¸ºäºè¿å¶
num=
print(bin(num))
octå¯ä»¥ææ´æ°è½¬æ¢ä¸ºå «è¿å¶ã
num=
print(otc(num))
hexå¯ä»¥æåè¿å¶æ´æ°è½¬æ¢ä¸ºåå è¿å¶
num=
print(hex(num))
int("",海南离上海源码 2) å¯ä»¥æäºè¿å¶è½¬æ¢ä¸ºåè¿å¶ã
æ¯äºè¿å¶ï¼è®°å¾è¦å ä¸åå¼å·ã
æ°å2表示""为äºè¿å¶ãå¦æè¾å ¥çä¸æ¯äºè¿å¶æ°åå°±ä¼æ¥éã
str=ââ
print( int(str, 2 ))