The road to python - network programming

 

You have now learned to write python code. If you write two python files a.py and b.py and run them separately, you will find that these two python files run well respectively. But what if you want to pass a piece of data between the two programs?

This problem can be solved with your current knowledge. We can create a file, write the content that a.py wants to pass to the file, and then b.py can read the content from this file.

But what should you do when your a.py and b.py are on different computers?

Similar mechanisms include computer network disks, QQ and so on. We can chat with others on our computer, and upload and download content to the network disk on our own computer. These are two programs communicating.

Architecture of software development:

The applications we know that involve communication between two programs can be roughly divided into:

The first is the application category: qq WeChat network disk Youku category is a desktop application that needs to be installed

The second is the web class: applications such as Baidu Zhihu Blog Park that can be accessed directly using a browser

The essence of these applications is actually the communication between two programs, and the two categories correspond to the architecture of two software development.

C/S Architecture:

C/S is: Client and Sever Chinese meaning: client and server architecture This architecture is also from the user level (which can be divided at the physical level)

 

 

B/S Architecture

C/S is: Client and Server, Chinese meaning: client and server architecture, this architecture is also divided from the user level (or the physical level).

The client here generally refers to the client application EXE. The program needs to be installed before it can run on the user's computer, which is highly dependent on the user's computer operating system environment.

 

Guess you like

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