python面試知識總結(二)——模塊、包與數據類型

模塊與包 輸入日期, 判斷這一天是這一年的第幾天? import datetime def dayofyear(): year = input("請輸入年份: ") month = input("請輸入月份: ") day = input("請輸入天: ") date1 = datetime.date(year=int(year),month=int(month),
相關文章
相關標籤/搜索