AttributeError: module 'socket' has no attribute 'socket'
使用 2.7 的或者3.0 以上的python 版本,这种都是带有模块的,不行的话,就 pip 装 模块
那就安装socket包么