Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

pythonÖлñµÃijÔÂÓжàÉÙÌìµÄº¯Êý

  żȻÐèÒªÓõ½ÕâÑùÒ»¸öº¯Êý£¬ÔÚDelphiÖУ¬ÓÐÏֳɵĺ¯Êý¿ÉÒÔµ÷Óã¡ÔÚpythonÖУ¬ÎÒÕÒÁË°ëÌ춼»¹Ã»ÕÒµ½£¬×îºó×Ô¼ºÐ´ÁËÒ»¸öº¯ÊýÈçÏ£º
def dayOfMonth(date):
if date.month == 12:
return 31
else:
return (date.replace(month=date.month+1, day=1) - datetime.timedelta(days=1)).day

ºóÀ´ÔÚ¹úÍâÍøÕ¾ÉÏ£¬Å¼È»·¢ÏÖÁËÒ»¸ö˵Ã÷£¬·¢ÏÖ£¬Ô­À´£¬pythonÖл¹ÊÇ´øÓÐÕâÑùµÄº¯ÊýµÄ£¡
monthrange(year, month)
    Returns weekday of first day of the month and number of days in month, for the specified year and month.
Õâ¸öº¯Êý¾ÍÊÇ£¬·µ»ØÐÇÆÚµÄÊýÁ¿ºÍ±¾ÔµÄÌìÊý£¬ÐèÒªÒýÓÃcalendar
>>>

import
calendar
>>>
calendar
.
monthrange
(
2002
,
1
)
(
1
,

31
)
>>>
calendar
.
monthrange
(
2008
,
2
)
(
4
,

29
)
>>>
calendar
.
monthrange
(
2100
,
2
)
(
0
,

28
)


Ïà¹ØÎĵµ£º

python Á·ÊÖ


¿ÉÒÔ²¥·Å´ó²¿·ÖµÄÒôÊÓƵ.
demo download:  http://www.sandy1219.com/python/media.rar
playMP3.py
# -*- coding: utf-8 -*-
import wx;
import wx.media;
import os;
import SPrint;
import mediaStateBar;
import mediaList;
import SaveLog;
import MediaItem;
woldcart = "media files|*.*|avi ......

¼¸µÀPythonµÄСϰÌâ

ѧϰPythonµÄµÀ·ÂþÂþ£¬¹â¿´²»Á·±È½ÏÎÞÁÄ¡£
ÕÒÁ˸öÍøÒ³£¬ÉÏÃæÓм¸µÀÏ°Ì⣬ÎÞÁÄÖ®ÓàÄÃÀ´Á·ÊÖ£¬»¹ÓÐЩÀÖȤ¡£
ÊÇÕâÀhttp://www.cnblogs.com/belaliu/archive/2006/11/25/572140.html
×¢£ºÏ°ÌâºóÃæÌùµÄ´úÂë²»Ò»¶¨ÊÇ×îÓŵġ£
´ó²¿·Ö±È½ÏºÃ½â¾ö£¬ÓеãÄѶȵÄÊǵÚ4Ìâ×öÈ¥³ý×Ö·û´®ÄڵĿոñµÄ²Ù×÷¡£
ÕÒÁËÍøÉϵĽâ¾ö·½°¸£¬ÓÐÕâ ......

python±È½Ï²Ù×÷µÄÄÚÄ»

½ñÌì¿´ÁËÐòÁÐÀàÐÍÏà¹ØµÄ±È½Ï²Ù×÷.
ÔÚpythonºËÐıà³Ì(2nd)Ò»ÊéÖÐ6.13.1Õ½ÚÖÐ, ¸ø³öÁËÁбí±È½ÏµÄÒ»¸ö×¼Ôò..
¸öÈ˸оõ»¹ÊDz»ºÜÍêÉÆ:
Èç¹ûɨÃèµ½Á½¸öÁбíÖе±Ç°±È½ÏÔªËØÊDz»¿É±È½ÏµÄ, ÄÇô·µ»Øʲô??
ÎÒÓõÄÊÇpython2.6....
¶ÔÕâ¸öÎÊÌâ×öÁËһЩ²âÊÔ, ×Ô¼ºÄ¿Ç°¸Â¾øµ±±È½ÏÓöµ½ÉÏÊöÇé¿öʱ, ÊÇʹÓÃÁ½¸öÁбíµÄÄÚ´æµØÖ·ÖµÀ´±È½ ......

Python Socket Server

½ñÌì×öftpµÄ½çÃæ,×öµÄÏ൱ÓôÃÆ£¬ÅªµÃÐÄÇé¼°Æ䲻ˬ£¬ÔÚÍøÉÏËѵ½ËÀ¶¼²»ÖªµÀ¸ÃÔõô°ì£¬´òËãÃ÷ÌìÏÈ¿´¿´C£«£«
µÄÊÇÔõôŪµÄÔÙ˵¡£²»¹ý£¬ÏÖÔÚÎÒÏëдһϹØÓÚsocketµÄ±à³Ì¡£
ÏÈдһ¸öʱ¼ä·þÎñÆ÷°É£¬Ëû¼àÌý¶Ë¿Ú£¬²¢Çһ᷵»Ø ·þÎñÆ÷µÄʱ¼ä
server.py
#!/usr/bin/python
# Copyright (c) angelipin (angelipin@126.com)
import ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ