Python Architecture knowledge

Source: Internet
Author: User

Python Internal execution process:

Python file python core runtime environment

Built-in module interpreter

Lexical Analysis of Class library

Custom module syntax parsing objects and types

Compiling memory management

Execution status

The interpreter does not save the code;

The file is all content once saved into memory, and then the interpreter one line of parsing;

3.5 print must be followed by parentheses;

#! /usr/bin/python can omit Python at execution time, mainly for Linux, and need to set permissions for files;

Windows is #! /usr/bin/env python

#-*-Coding:utf-8-*-: Tell the interpreter to UTF8 code//Python 3 It's all right.

ASCII code: 8-bit can include all English, characters, numbers, ASCII

Universal Code unicode:1 characters at least 2 bytes 16 bits, 1 men with 3 bytes marked

Utf-8:

English 8

Europe 16

English 24

Gbk:unicode are coded differently

Python default ASCII;

Python Architecture knowledge

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.