python 出现这种问题怎么办 报错提示 most recent call last

baidu_34680343 2016-04-17 10:24:00
...全文
2654 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
dabao119 2019-06-04
  • 打赏
  • 举报
回复
Traceback (most recent call last):
File "D:\Program Files\Python37\lib\wsgiref\handlers.py", line 141, in run
self.handle_error()
File "E:\work\dqdb\lib\site-packages\django\core\servers\basehttp.py", line 116, in handle_error
super().handle_error()
File "D:\Program Files\Python37\lib\wsgiref\handlers.py", line 368, in handle_error
self.finish_response()
File "D:\Program Files\Python37\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "D:\Program Files\Python37\lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "D:\Program Files\Python37\lib\wsgiref\handlers.py", line 331, in send_headers
if not self.origin_server or self.client_is_modern():
File "D:\Program Files\Python37\lib\wsgiref\handlers.py", line 344, in client_is_modern
return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'
TypeError: 'NoneType' object is not subscriptable
  • 打赏
  • 举报
回复
用文本编辑器就能解决……最不济用windows自带的记事本也行
xSeeker~ 2016-04-17
  • 打赏
  • 举报
回复
是图片路径的问题,把图片路径中的\ 改为双斜杠\\ 另外建议路径中不要含有中文字符
baidu_34680343 2016-04-17
  • 打赏
  • 举报
回复
如何解决这个问题
baidu_34680343 2016-04-17
  • 打赏
  • 举报
回复
文本编辑器不知道怎么回事打不开
Suagr 2016-04-17
  • 打赏
  • 举报
回复
还是用文本编辑器写成脚本再运行吧,这样子比较好。

37,721

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧