How to build an intranet using the Python Programming Language

Source: Internet
Author: User

If you are not familiar with the running method of the Python programming language, you can use our article to understand the specific application of the running method of the Python programming language, the following articles describe the specific operation methods, and I hope you will gain some benefits.

Running Mode

Python can be run in command line or interactive mode. It also has a graphical integration environment, which makes Python development quite convenient. Now, many visual programming software written in Python has been used to implement functions like Delphi.

Object-oriented

The Python programming language is a real object-oriented language. It even supports exception handling. If you have learned Java, you should be familiar with it. However, other scripting languages, such as PHP, do not seem to have any. This makes the compilation of the program clearer without many error checks.

Modules and packages

This is more like Java. For Java support, you can understand JPython. JPython is a Python written in Java. It fully supports Java. In this environment, you can use Java class libraries freely. Language extensions can use C, C ++, or Java to write new language modules, such as functions, for Python. It can be directly compiled with Python, or implemented using dynamic library loading. Someone has also compiled a tool to automatically implement function Interface encapsulation for Python. This is SWIGSimplified Wrapper and Interface Generator), or it is called simple encapsulation and Interface Generator.

  • Python string operation manual in practice
  • Three application solutions in Python logic operations
  • Describes the operability of the Python Programming Language
  • Three main application forms of Python Functions
  • How to Write Python strings?

Guido believes that Python syntax is very elegant. One of them is that the block statement is not a {} pair commonly used in the C language, or another symbol pair, but uses the near representation! Interesting. In this regard, Guido's explanation is: first, using the near representation reduces visual confusion and shortens the program, this reduces the scope of attention to basic code units;

Secondly, it reduces the programmer's freedom and is more conducive to unified style, making it easier to read other people's programs. I think it is good. in C language, there are several kinds of braces behind the if statement. Different people like different things and it is better to unify them.

After the definition of each class or function, the first line can be a description statement without the annotator mark. For the statement followed by the block statement, it should be followed by a colon. A row of statements cannot be too long because there is no line terminator. If it is too long, use the line break (\). There are also some interesting examples, such as the following comparison processing, using the C language:

 
 
  1. if (2<a&&a<5)   

It can be expressed

 
 
  1. If (2 <a & a <5)
  2. What is Zope?
  3.  

Zope is an open-source Web application server developed in Python. It allows you to easily build content management, intranets, portals, and other custom applications.

A highly object-oriented Web development platform developed in Python.
It can run on almost all popular operating systems and supports multiple languages.
It can be integrated into other popular servers and also comes with servers.
Provides clear data/logic/representation separation.
With extensible built-in objects and powerful

The above is an introduction to the Python programming language.

Related Article

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.