Python - Date and Time: AttributeError: 'module' object has no attribute 'month'

后端 未结 5 1091
醉话见心
醉话见心 2021-01-20 21:41

This is my calendar code in Python and I have saved it to my folder as calendar.py.

import calendar
a = calendar.month(2016, 3)
print (a)
print          


        
5条回答
  •  有刺的猬
    2021-01-20 22:27

    Do not name the file as calendar.py and there should be no calendar.py file on the same path

提交回复
热议问题