2-3-python Programming Basic Knowledge - Basic Data Types PPT Courseware.pptx; 2 basic data types 1 2-3-python programming basic knowledge - basic data types PPT courseware a total of 71 pages, currently on page 1. Object Type Type Name Example Brief Description Numerical int, float, complex 1234, 3.14, 1.3e5, 3 4j There is no limit to the size of the number, built-in support for complex and its operations. String str 'swfu', "I'm student", '''Python ''', r'abc', R'bcd' Use single quotes, double quotes, and triple quotes as delimiters, with letters r or R leading to indicate raw strings. Byte String bytes b'hello world' Is led by the letter b, and can use single quotes, double quotes, and triple quotes as delimiters. List list [1, 2, 3], ['a', 'b', ['c', 2]] All elements are placed in a pair of square brackets, separated by commas, and the elements can be of any type. Dictionary dict {1:'food' ,2:'taste', 3:'import'} All elements are placed in a pair of braces, separated by commas, and the element form is "key:value". Tuple (2, -5, 6), (3,) All elements are placed in a pair of parentheses, separated by commas, if there is only one element in the tuple, the following comma cannot be omitted General built-in objects Commonly used built-in objects in Python 2 pairs
"。。