Python learn three basic data types

 

The basic data types
of digital int , all functions are placed int Lane   (by type ctrl + left view specific methods)
    A1 = 123
    A1 = 456

 

- 1212131415

Python 2 with long represents long integer

Python 3 is not long integer, are used int
string STR
    S1 = "asdf" S2 = "asdffas" list List     ... tuples tuple     ... dictionary dict     ... Boolean BOOL     ...
    







 

String into digital
A = "123"
Print (type (A), A)

B = int (A)
Print (type (B), B)

 

- big_length()

 # Current binary numbers, with at least n bits representing

  r= age.bit_length()

Guess you like

Origin www.cnblogs.com/159357zzx/p/11441156.html