python
dodo_check
这个作者很懒,什么都没留下…
展开
-
多线程学习
一、Python中的线程使用: Python中使用线程有两种方式:函数或者用类来包装线程对象。 1、 函数式:调用thread模块中的start_new_thread()函数来产生新线程。如下例: import time import thread def timer(no, interval): cnt = 0 while cn转载 2013-05-20 15:42:39 · 412 阅读 · 0 评论 -
安装
<!-- p {margin-bottom:0.21cm} --> 由于开发机上的python版本是2.4版,不能安装较新版本的reviewboard的客户端,因此需要在用户的$HOME目录下安装较新版本的python,推荐使用python2.7。以下是python安装步骤: wgethttp://www.python.org/ftp/python/2.7.转载 2013-05-20 16:00:09 · 401 阅读 · 0 评论 -
time
python 的内嵌time模板翻译及说明 一、简介 time模块提供各种操作时间的函数 说明:一般有两种表示时间的方式: 第一种是时间戳的方式(相对于1970.1.1 00:00:00以秒计算的偏移量),时间戳是惟一的 第二种以数组的形式表示即(struct_time),共有九个元素,分别表示,同一个时间戳的struct_time会因为时区不转载 2013-05-22 17:13:00 · 447 阅读 · 0 评论