from datetime import datea = date(2001,2,18)b = date(2001,2,28)print(b-a)
来源: http://www.bubuko.com/infodetail-2854971.html