Лабораторная № 4, Working Days.

May 12, 2010 11:29


# -*- coding: cp1251 -*-

import calendar as c

def workDays(Y,M):
    lenghMonth = len(c.monthcalendar(Y,M))
    nameMonth = c.month_name[M]
    Range = [0, lenghMonth-1]
    day = 0
    for i in Range:
        for k in range(len(c.monthcalendar(Y,M)[i])-2):
            if c.monthcalendar(Y,M)[i][k] != 0:
                day += 1
    return 5*(lenghMonth-2) + ( Read more... )

lab#04, python

Leave a comment

Comments 4

olka_kl May 12 2010, 08:43:33 UTC
Chego eto ti syuda programmi postish?

Reply

santorio May 12 2010, 11:53:41 UTC
=) я валяюсь с твоей авы!!!
Постю, чтобы не пропали.

Reply

olka_kl May 17 2010, 20:24:31 UTC
Да, это я и Лейф.)

Reply

santorio May 18 2010, 03:23:55 UTC
А ты ему ее показывала? ;)

Reply


Leave a comment

Up