かんたん作成【HTML CSS JavaScript PHP CGI Perl Ruby Python .htaccess】

カレンダー(calendar.month)

#! /usr/bin/python
# coding: Shift_JIS

import time
import calendar

tm = time.localtime()

print "Content-type: text/html"
print """
    <html>
    <head>
    <title>カレンダー</title>
    </head>
    <body>
    <pre>
"""

print calendar.month(tm[0], tm[1])

print """
    </pre>
    </body>
    </html>
"""
かんたん作成【HTML CSS JavaScript PHP CGI Perl Ruby Python .htaccess】