Browse Source

ErsterPrakTag

master
hohwielerto72856 3 years ago
parent
commit
0f9a07e04a
2 changed files with 29 additions and 0 deletions
  1. 0
    0
      YingYang.py
  2. 29
    0
      Yingyang/YingYang.py

+ 0
- 0
YingYang.py View File


+ 29
- 0
Yingyang/YingYang.py View File

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()

Loading…
Cancel
Save