本文实例为大家分享了python实现电子词典的具体代码,供大家参考,具体内容如下
服务端
#!/usr/bin/env python3
from __future__ import unicode_literals
# coding=utf-8
from socket import *
import os
import pymysql
import time
import sys
import signal
DICT_TEXT = "./dict.txt"
HOST = '0.0.0.0'
PORT = 8000
ADDR = (HOST, PORT)
# 主控制流程
def main():
1