-1
import SimpleHTTPServer
import SocketServer
import os
class randomiser(self):
def random():
print "hi"
class MyRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-type", "text/html")
self.send_header("Content-length", len("hi"))
self.end_headers()
self.wfile.write("hi")
PORT = 8002
Handler = MyRequestHandler
httpd = SocketServer.TCPServer(("", PORT), MyRequestHandler())
print "serving at port", PORT
httpd.serve_forever()
這只是隨機決定採取廢話本身,錯誤:的Python腳本犯規開始,一些涉及到一個 '子'
http://creeper9207.com/error.PNG
其他信息: 的Windows 10測試版建立9926 蟒蛇2.7.9 錯誤在空閒和終端,終端太快看不到