Basic data Type one, integer type (int)
32-bit machine, the number of digits of the integer is 32 bits, the value range is -2**31~2**31-1, namely -2147483648~2147483647
64-bit machine, the number of integers is 64 bits, the value range bit -2**63~2**63-1, that is -9223372036854775808~9223372036854775807
Bit_lenth (): Minimum number of bits to use when decimal is represented in binary
A = 6= ten=print(a.bit_length ())print(b.bit_length ()) Print(C.bit_length ())
The output is: 3,4,7
Two, Boolean type (BOOL)
String Conversion bit Boolean: bool (str), when the string is an empty string, converted to false, otherwise converted to true
' AFDS,BNK ' "' Print (bool (a), bool (b), BOOL (c))
The output is: true,false,true
"' if A: Print (' correct ') Else : Print (' error ')
The output is: Error
C. String type (str):
Python Learning (iii)