Python Tip
Aarchbishop
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python 命令行的一个发现...
一直是使用 开始菜单中的 快捷方式 Python (command line) 来开启一个 Python 命令行但是,这种情况下,用起来非常不舒服,因为在窗口中不能直接用鼠标来选取内容:(昨天偶然发现,在cmd 窗口下,运行python ,这时进入python命令行,就可以用鼠标来选择窗口中的内容,好妙啊...原创 2006-01-20 15:08:00 · 1653 阅读 · 0 评论 -
Python 库的安装...
Python 的库如果是 在 Setup.py 的 一般 Python setup install 就可以安装了:)原创 2006-01-20 17:29:00 · 3684 阅读 · 0 评论 -
python 中如何计算时间差...
http://blog.donews.com/limodou/archive/2005/02/16/278221.aspxQ:如何方便的计算两个时间的差,如两个时间相差几天,几小时等A:使用datetime模块可以很方便的解决这个问题,举例如下:>>> import datetime>>> d1 = datetime.datetime(2005, 2, 16)>>> d2 = da转载 2006-04-18 10:51:00 · 10441 阅读 · 0 评论 -
关于Python中时间与字符串直接的转换...
>>> import time>>> import datetime>>> now = time.localtime()>>> now(2006, 4, 30, 18, 7, 35, 6, 120, 0)>>> type(now)>>> str_now = time.strftime("%m/%d/%Y %X", now )>>> str_now04/30/2006 18:07:35>>原创 2006-04-30 18:19:00 · 14235 阅读 · 0 评论
分享