本文共 246 字,大约阅读时间需要 1 分钟。
- 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
转载地址:http://ywizn.baihongyu.com/