.
1. Python variable is not defined in advance like C type number, and it only
Contain Numbers, letters, and underscore, and not to use digital beginning,
Only can use the letter or the underscore,
2. Variable cannot appear between Spaces, two variables can use "+" to connect
,
2.
the data type of the python
Python3 has six standard data types:
Number (Number)
String (String)
The List (List)
The Tuple (a Tuple)
Set (Set)
The Dictionary (Dictionary)
1. The Number (Number), String (String), the Tuple (yuan
Group) is an immutable data;
2. The List (List), the Dictionary (Dictionary), the Set (Set) is
Variable data,
3. The tuples (a tuple) is similar to the list, the difference is of a tuple yuan
Cannot be modified, the list is written in square brackets [], and a tuple is written in the
In the parentheses (),
4. Sometimes, we need to be transformed to the built-in data types, data
Types of conversion, you just need to the data type as the function name,
3. Python supports the following operators:
Arithmetic operators
Comparison (relationship) operator
The assignment operator
Logical operators
An operator
Members of the operator
The identity operator
Operator precedence
Python most arithmetic operators agree with C, but also has the difference, such as * * said chengfang,//take divisible - down to the divisor integer, there is no C,
Python operator in the * * is the highest priority, unary operator take second place, with the arrangement of C is the same as the below,
CodePudding user response:
Thanks for sharing, notes suggest to personal blog