擅长:python、mysql、java
<p>你可以把这个加到if子句中</p>
<pre><code> elif self.path.endswith(".css"):
f = open(curdir+sep+self.path)
self.send_response(200)
self.send_header('Content-type', 'text/css')
self.end_headers()
self.wfile.write(f.read())
f.close()
return
</code></pre>
<p>或者</p>
^{pr2}$