どのようにカレンダーのいずれかの年のカレンダーを印刷する
982 ワード
import calendar
#This Will import the calendar module
year = int(input("Enter any year: "))
#Here we are asking user to input year and we are storing
#it into year variable.
print(calendar.calendar(year))
#Here we are using calendar method of calendar module and passing
#year as arguments and this will return us calendar of the year
#and then with the help of print function we are printing the
#returned data."""
Reference
この問題について(どのようにカレンダーのいずれかの年のカレンダーを印刷する), 我々は、より多くの情報をここで見つけました https://dev.to/ankitdevelops/how-to-print-calendar-of-any-year-in-python-hmcテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol