Python日期处理Arrow包(待完善)

#!/usr/bin/python
# -*- coding:utf8 -*-
import arrow

b = '2016-09-20'
utc = arrow.get(b)
print arrow.get(b).day


print utc.year
print utc.month

你可能感兴趣的:(Python)