小编mel*_*ika的帖子

为什么日历模块在 python 3 上不起作用?

我正在输入此代码:

import calendar

cal = calendar.month(2014, 7)
print(cal)
Run Code Online (Sandbox Code Playgroud)

我不知道问题出在哪里,也不知道哪里有拼写错误。它只是不断给我这个错误:

AttributeError: 'module' object has no attribute 'month'
Run Code Online (Sandbox Code Playgroud)

python calendar

0
推荐指数
1
解决办法
5658
查看次数

标签 统计

calendar ×1

python ×1