ErsterPrakTag

This commit is contained in:
hohwielerto72856 2021-10-20 12:56:43 +02:00
parent 8ef4b50673
commit 0f9a07e04a
2 changed files with 29 additions and 0 deletions

View File

29
Yingyang/YingYang.py Normal file
View File

@ -0,0 +1,29 @@
import http.server
class EigenerHandler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-tyoe', 'text-html')
self.end_headers()
msg = """
<html>
<head>
<title> YingYang </title>
</head>
<body>
<b>Ying</b>
</body>
</html>
"""
self.wfile.write(msg.encode('utf-8'))
port = 12345
handler = EigenerHandler
address = ('', port)
server = http.server.HTTPServer(address, handler)
server.serve_forever()