
PYTHON
文章平均质量分 80
xihadajiang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python threading_test
# coding utf-8 # file threaddaemon.py import threading import time class mythread(threading.Thread): def __init__(self,threadname): threading.Thread.__init__(self,name=threadname)原创 2012-05-05 14:34:07 · 319 阅读 · 0 评论 -
多线程通信
from threading import * from time import ctime import socket import pickle class Data: def __init__(self,Kind=None,To=None,From=None,Message=None): self.Kind=Kind self.To=To原创 2012-05-05 15:33:05 · 358 阅读 · 0 评论 -
python threading同步
# coding: utf-8 # file:syn.py import threading import time class mythread(threading.Thread): def __init__(self,threadname): threading.Thread.__init__(self,name=threadname) def r原创 2012-05-05 14:35:59 · 297 阅读 · 0 评论 -
Python socket编程(TCP)
套接字模块是一个非常简单的基于对象的接口,它提供对低层BSD套接字样式网络的访问。使用该模块可以实现客户机和服务器套接字。要在python 中建立具有TCP和流套接字的简单服务器,需要使用socket模块。利用该模块包含的函数和类定义,可生成通过网络通信的程序。 建立TCP服务器连接需要六个步骤。 1.是创建socket对象。调用socket构造函数。 socket=soc转载 2015-06-27 11:06:13 · 331 阅读 · 0 评论