Python learning process One

Source: Internet
Author: User
  1. Python differs from Windows and Linux. There is no more process under window. Linux under the can.

  2. There are many types of python. CPython (official, written in C), Jython. Ironyhon .... For example, Jython is compiled by Java, and the corresponding bytecode is compiled. Languages are in Python format. Just the Interpreter (virtual machine) is not the same.

  3. The python interpretation process reads code by default in ASCII code. Easy to cause read failure.

    Unicode at least 2 bytes indicates that it can be expressed in Chinese and cannot be read from the hard disk. Utf-8 at least 1 bytes, saving space, classifying characters and being able to read from the hard disk. Chinese with 3 bytes.

  4. python3.0 jumps directly from 2.4. Released prior to 2.7. 2.6 Compatible with 2.4,3.0. 2.7 is over to 3.0.

  5. Python comment, single line comment #, multiline comment "" "Content" ""

  6. Capture parameter Print SYS.ARGV

  7. The first time the module is called, A. PYc bytecode file is generated. Use this. pyc file later.

  8. Byte codes can be deserialized. Even the DLL files generated by C # can be.

9.. py and. PYc in the same case (without modification), Python overrides the call. PYc

This article is from the "Runaway Mustang" blog, please be sure to keep this source http://10846992.blog.51cto.com/10836992/1758904

Python learning process One

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.