- 博客(3)
- 收藏
- 关注
原创 Python直接访问Postgresql,实践通过
Python 2.7.6 Postgresql 8.4 安装PyGreSQL-4.1.1.win32-py2.7.exe import pg def yourfunction(): db = pg.connect(dbname=?,host=?,user=?,port=?,passwd=?) res = db.query("sele
2014-01-22 11:24:03
642
原创 datetime计算日期差值
2013/08/21 2014/10/01 差多少天? 某人 活了多少天? 一年中的第几天? 等等 都可以直接使用datetime来计算 (datetime.datetime.strptime(str1, "%Y/%m/%d")-datetime.datetime.strptime(str2, "%Y/%m/%d")).days
2014-01-10 11:44:19
1179
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人