摘要:
python的内置对象对象类型常量示例/用法Number(数字)3.14159, 1234, 999L 3+4jString(字符串)'spam', "guido's"List(列表)[1,[2, 'Three'],4]Dictionary(字典){'food':'spam', 'taste':'yum'}Tuple(元组)(1,'spam',4,'U')File(文件)text=open('egges','r').read()数字常量常量解释1234, -24, 0正常整数(C的长整型)999999999999999L长整数(无限大小)1.23, 3.14e-10, 4E210, 4.0e+ 阅读全文