Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
2023 年 2 月

利用python快速搭建企业网站

利用python快速搭建web服务器,代码如下

from http.server import HTTPServer, SimpleHTTPRequestHandler
if name == 'main':
server = HTTPServer(('0.0.0.0', 80), SimpleHTTPRequestHandler)
server.serve_forever()

浏览器中打开:

http://本机IP/即可访问该服务