
Python
iteye_10692
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
WOL之python实现
[code="python"] #!/usr/bin/env python # Wake on Lan import socket import struct def wake_on_lan(mac): """ Switches on remote computers using WOL. """ # Check mac format and try to ...原创 2011-01-27 18:08:36 · 790 阅读 · 0 评论 -
生产消费者简单实现
[code="python"] #!/usr/bin/python import threading from time import ctime, sleep from Queue import Queue from random import randint class WadeThread(threading.Thread): def __init__(self...原创 2011-03-10 21:19:45 · 130 阅读 · 0 评论 -
编译python需要注意的
[code="C"] python依赖的: yum -y install gcc gdbm-devel readline-devel ncurses-devel zlib-devel bzip2-develsqlite-devel db4-devel openssl-devel tk-devel bluez-libs-devel make configure;make;make inst...原创 2011-03-26 13:14:54 · 157 阅读 · 0 评论 -
提高Python脚本的运行速度
[code="python"] // 源代码 #!/usr/bin/python import psyco import timeit def slow_func(): for a in range(320): for b in range(320): for c in range(320): if 320 == (a + b + ...原创 2011-04-27 11:05:34 · 496 阅读 · 0 评论