when i run server i got "name 'http' is not defined" after import http.server then i got this "no mo
来源:互联网 发布:阿里云幕布原图下载 编辑:程序博客网 时间:2024/05/23 14:40
http.server only exists in Python 3. In Python 2, you should use theBaseHTTPServer module:
from BaseHTTPServer import BaseHTTPRequestHandler
should work just fine.
so if you run in py3 is ok
在Python 3.x中,BaseHTTPServer, SimpleHTTPServer, CGIHTTPServer整合到http.server包,SocketServer改名为socketserver,请注意查阅官方文档。
0 0
- when i run server i got "name 'http' is not defined" after import http.server then i got this "no mo
- How do I run IBM HTTP Server diagnostic modules on IBM HTTP Server 7.0?
- Wow! I got a goal!
- Smack “No Response From Server”. Not sure why am i getting this error
- I got frustrated, but that was awesome!!!
- I've got my alumni card
- I've got my alumni card
- I'VE GOT MCE SDK 5.3
- I’ve Got Your Back(gammon)
- I've Got Your Back(gammon)
- held me down,I got up
- SSL P2819 I Got a Matrix!
- Three ways to create an HTTP Server on IBM i
- Got “Could find web site” error after renewing server certificate
- [转]How I got started in programming - Bruce Eckel
- 【NBA.COM】I've Only Got Iverson for You
- 7月10日 RHIT2 I got my answer today !
- Errors I got in django cms configurating process
- 扩展欧几里得算法与模乘逆元的程序
- 判断全排列的出现次序
- 【bzoj4597】[Shoi2016]随机序列 线段树
- 定时器(quartz)的使用
- 国内下载android源码镜像地址及方法
- when i run server i got "name 'http' is not defined" after import http.server then i got this "no mo
- [JavaScript] 6.JS 常见内置对象
- jbpm4.4审批实例
- 使用GPUImage渲染图片教程
- 解决ViewPager嵌套,滑动冲突
- 手机的一些小技巧
- Android学习——Menu
- iframe 自适应高度
- hadoop与hbase伪分布式的基本配制文件设置