Python outputs the calendar for the specified year month!

Source: Internet
Author: User

Outputs the calendar for the specified year month, without outputting a month interval of 1s.

#!/usr/bin/python#coding=utf-8import timeimport calendark=0def nowtime (): T1=time.time () localt1=time.localtime (T1) Localtime=time.asctime (LOCALT1) print Localtimewhile k<=1:k+=1 time.sleep (2) nowtime () for I in Xrange ( 1,13): #12个月份 print ' 2017%s month's calendar \ n '%i,calendar.month (2017,i) #可以更改年份 time.sleep (1)

offer a small program.

This article is from the global connected Cloud host Q874247458 blog, so be sure to keep this source http://gosweet.blog.51cto.com/11759495/1899237

Python outputs the calendar for the specified year month!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.