The first day of python22 (course summary)

1. Introduction to Python:

      Python is a high-level programming language, involving a wide range of fields, active community, maintained by a core development team, compared with other languages, easy to learn, strong portability, strong scalability, easy maintenance, there are a large number of standard libraries available for use.

   

2.Python version:

      Currently popular versions: python2.7, python3

      Interpreter types:
         - cpython interpreter (*)
         - jpython interpreter
         - ironPython interpreter
         - rubyPyhton interpreter
         .....
         - pypy interpreter

 

        

3. Language bar coding format (any language follows this coding format)     

ascii: use 1 byte = 8 bits to represent everything a computer can express.
        2**8 = 256
        00000000 -> A
        00000001 -> B
        00000010 -> C
        00000011
        00000100
unicode: Universal code, use 4 bytes = 32 bits for the corresponding relationship
        2**32 = 4294967296
        00000000 00000000 0000000 -> A
        0000000010-> B
        00000000 0000000010-> C         00000000         10000000         00010000
        00011010 -> Purple
UTF-8: Compressing the national         code Section = 24 bits         gbk: Correspondence to the text of Asian countries         PS: Chinese 2 bytes = 16 bits






 

4. IDE tool specially developed by python: python

 

5. Start python becomes:

      variable:

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325631529&siteId=291194637