![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
故障排除
lyh_ADT
这个作者很懒,什么都没留下…
展开
-
Python tornado模块 StaticFIleHandler 的响应Content-Type 错误问题解决
目录问题描述解决过程解决方法1(修改注册表)解决方法2(使用默认值)(简洁)解决方法3(指定mime.types文件)(推荐)我在写python tornado应用时遇到静态文件的响应头问题,这篇文章叙述了我解决问题的过程和解决方法。问题描述使用tornado模块自带的StaticFileHandler时,发现有些文件请求的响应Content-Type是错误的。比如.js文件的Content-Type: text/plian,而正确的响应应该是application/javascript解决过程原创 2020-12-31 19:54:24 · 1012 阅读 · 4 评论 -
Python subprocess 运行子python进程的 stdin/stdout/stderr 缓冲问题
Python subprocess 运行子python进程的 stdin/stdout/stderr 缓冲问题Python subprocess 运行子python进程的 stdin/stdout/stderr 缓冲问题问题描述解决过程bufsizeuniversal_newlines=Truepython -u解决方法Python subprocess 运行子python进程的 stdin/s...原创 2020-03-27 10:27:08 · 4147 阅读 · 2 评论 -
华为云服务器安全组开启端口后503
华为云服务器安全组开启端口后503最近刚买了个华为云的服务器,随手用Python写了个Web服务类似下面这样子#coding:utf-8from http.server import BaseHTTPRequestHandlerfrom http.server import HTTPServerclass MyRequestHandler(BaseHTTPRequestHandler)...原创 2019-05-19 20:28:03 · 1884 阅读 · 0 评论