- Numbers: 1234, 3.1415, 999L, 3+4j, Decimal
- Strings: ’spam’, “guido’s”
- Lists: [1, [2, ‘three’], 4]
- Dictionaries: {’food’: ’spam’, ‘taste’: ‘yum’}
- Tuples: (1,’spam’, 4, ‘U’)
- Files: myfile = open(’eggs’, ‘r’)
- Other types: Sets, types, None, Booleans
Python的基本内置类型
最新推荐文章于 2024-02-28 18:29:42 发布