Python的入門與進階的學習筆記之Python基本數據類型

Number: int和float: 除法:int/int 得到 int型 int//int 得到 float型 (注:整除//表示只保留整數部分) 乘法:* 進制轉換: 二進制:0b 八進制:0o 十六進制:0x 轉換: bin(10) 十進制轉換爲二進制 int(0b111) 二進制轉換爲十進制 oct(0b111) 二進制轉換爲八進制 hex(888) 十進制轉換爲十六進制 布爾類型:(首字
相關文章
相關標籤/搜索