@@ -0,0 +1,16 @@ | |||
import socket | |||
s = socket.socket() | |||
host = socket.gethostname() | |||
port = 12345 | |||
s.connect((host, port)) | |||
while True: | |||
msg = input("Etwas eingeben! ") | |||
s.send(msg.encode('utf-8')) | |||
if(msg != "STOP"): | |||
break | |||
bytes = s.recv(1024) | |||
print(bytes.decode('utf-8')) | |||
s.close() |
@@ -0,0 +1,9 @@ | |||
import http.server | |||
class EigenerHandler(http.server.BaseHTTPRequestHandler): | |||
def do_GET(self): | |||
self.send_response(200) | |||
self.end_headers() | |||
msg = | |||
self.wfile.write() |
@@ -0,0 +1,13 @@ | |||
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
<meta charset="UTF-8"> | |||
<title>Yang</title> | |||
</head> | |||
<body> | |||
<div> Yang </div> | |||
<div> | |||
<a> href="Yong.html"</a> | |||
</div> | |||
</body> | |||
</html> |
@@ -0,0 +1,13 @@ | |||
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
<meta charset="UTF-8"> | |||
<title>Ying</title> | |||
</head> | |||
<body> | |||
<div> Ying </div> | |||
<div> | |||
<a> href= "Yang.htlm" </a> | |||
</div> | |||
</body> | |||
</html> |