- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 Python校验年、月时间跨度
最近做的一个需求,需要在python里面校验时间跨度。两个时间点分别是start_time, end_time,之前知道timedelta可以按天计算,用于加减运算。但不能满足月份或者年这种天数不定的需求。“` if start_time < datetime.datetime.today() - relativedelta(months=6): reas
2017-04-10 17:49:41 1561
转载 ImportError: No module named thrift
运行Python脚本时提示如标题脚本包含:sys.path.append('/usr/lib/python2.7/site-packages/') from thrift import Thriftfrom thrift.transport import TSocketfrom thrift.transport import TTran
2017-04-09 15:25:17 4001
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人