C:\Users\kay>test1.py >f:\11.txt
Traceback (most recent call last):
File "C:\Users\kay\test1.py", line 3, in <module>
from SocketServer import TCPServer, BaseRequestHandler
File "C:\Python27\lib\SocketServer.py", line 132, in <mo
import socket
File "C:\Users\kay\socket.py", line 21, in <module>
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
AttributeError: 'module' object has no attribute 'AF_INET'
真的可以改名
按照TCP网络编程例程运行的 出现如下错误 例子没有任何改动 请教廖老师 这是什么原因? 我也百度了下,按照他们说的删除xx.pyc文件 可是还是出现这个,前几次还好好的,难道只能重装了吗