Python數據類型詳解

目錄 1、字符串 2、布爾類型 3、整數 4、浮點數 5、數字 6、列表 7、元組 8、字典 9、日期 1、字符串 1.1、如何在Python中使用字符串 a、使用單引號(') 用單引號括起來表示字符串,例如: str='this is string'; print str; b、使用雙引號(") 雙引號中的字符串與單引號中的字符串用法完全相同,例如: str="this is string";
相關文章
相關標籤/搜索