python learning two (computer language and sublime environment settings)

Computer language
     machine language
          - written in machine language program through binary encoding
          - high efficiency, too much trouble to write
     assembly language
        - use symbols instead of machine code
        - the preparation process without the use of a binary, but written symbols directly
        - after completion, symbol needs to be converted to machine code, and then executed by a computer
        - to convert the machine code to process symbols, called disassembly
        - assembly language generally apply only to some of the hardware, compatibility is relatively poor
     high-level language
        - advanced grammar and basic grammar now English-like syntax, and hardware and not so close
        - opening high-level language can be executed on different hardware systems
        - advanced language learning simple
        -... C. c ++ c # java python ...
compiled languages and interpreted languages
     written type languages
         - c language
         - compiled language, the code will be executed before the code is compiled into machine code, and then handed over to the computer to execute machine code
         - features:
             execute very fast
             , cross-platform, relatively poor

     interpreted language
         - python js java
         - interpreted language, the code will not compile before, but while compiling execution while executing simultaneously
         - Features:
             execution speed is relatively slow
             cross-platform better

describes the python
    python is an interpreted language, clear structure, the code clear
    python uses:
        the wEB application (Facebook watercress ...)
        web crawler program (crawl the web network data ...)
        science and technology
        automation operation and maintenance
        of large data (data cleansing)
        cloud computing
        artificial intelligence
        .... ....


python environment to build
    install python interpreter
    python interpreter:
        CPython: c language written in python interpreter (official)
        PyPy: written in python language python interpreter
        IronPython: written in the .net python interpreter
        Jython: with java written in python interpreter


python interface
structure:
    version and copyright notice
Python 3.7.3 (v3.7.3: ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
command prompt:
    >>>

        after the command prompt, the python may be directly input instruction, the input command will be completed immediately executed python interpreter
        installed python while automatically installs a development tool python IDLE tool, IDLE mode may be entered to the interactive
        IDLE the shell is a python interpreter, you can use the tab prompt
integration of python and sublime
    1. use ctrl + b can execute python scripts directly, but there are bug
    2. use sublimeREPL run python code
        Ctrl + shift + p installation Package Control then Preferences select Package Control: selecting install Package installation sublimeREPL
        after installation, set the shortcut keys f5, select a shortcut set in the following code input into the selection preferences:
            {"keys": ["f5"], "caption": "SublimeREPL:Python","command": "run_existing_window_command", "args": {"id": "repl_python_run","file": "config/Python/Main.sublime-menu" }},

Guess you like

Origin www.cnblogs.com/wangwen022/p/11261460.html