Python Dynamic HTML Web Server

4.5
122 個評分
提供方
Coursera Project Network
5,820 人已註冊
在此免費的指導 項目中,您將:

Prepare the Web Server Using the SimpleHTTPRequestHandler class

Add CGI using the CGIHTTPRequestHandler class to allow Python Pages

Define Routes to the Pages in the Web Server

在面試中展現此實踐經驗

Clock1 hour
Beginner面向初學者
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

Web application servers are abundant these days. Each have one thing in common, they ultimately process requests and return web pages. Apache serves PHP pages along with static HTML. Microsoft’s .NET creates dynamic web pages that may be authored using C# or VB and served using IIS. Java Enterprise Edition has many options, WebSphere, WebLogic, and Apache TomEE to name a few server platforms. Python has its own web server that can be built in one line of code, but it is relatively simple to create the server code yourself. This is useful if you want to understand how web servers work and can be used to quickly test your own web pages. In addition, some browsers will not load local files due to security; using a simple web server solves this issue as well. In this course, you will create a Python application in which you will create a simple HTTP server, create a static web page, create dynamic pages using python, and access the pages from the server using the command line as well as from a browser. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

必備條件

Learners should be familiar with some Python, including variables and input/output, and the basic control constructs.

您要培養的技能

Dynamic Web ApplicationPython ProgrammingServer ProgrammingPython Web ApplicationWeb Server

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Use the SimpleHTTPRequestHandler to allow the Server to Handle Requests.

  2. Create a Home Page for the Web Application

  3. Add CGI to allow Dynamic Web Pages.

  4. Create a Python Script to create a Time-Stamped List of Random Numbers.

  5. Define Routes to the Pages in the Web Server.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

審閱

來自PYTHON DYNAMIC HTML WEB SERVER的熱門評論

查看所有評論

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心