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

python·¢ËÍÓʼþ»áµÄ½øÀ´°ï°ïæ

´úÂëÔÚÕâ¸öÁ¬½Ó
http://blog.donews.com/maverick/archive/2007/04/22/1159142.aspx
·½·¨def sendEmail(authInfo, fromAdd, toAdd, subject, plainText, htmlText):

Õâ¸ö·½·¨ÊDz»Êǵ¥¶À¾Í¿ÉÒÔÄóöÀ´Óà Èç¹û¿ÉÒÔÆäÖеIJÎÊýË­Äܸø˵һÏÂ
¸øÌî¸öÀý×Ó ²»Ê¤¸Ð¼¤
authInfo['server'] = 'smtp.163.com'·þÎñ
authInfo['user'] = 'xxxxx@163.com'·¢Ë͵ÄÓÊÏ䣿
authInfo['password'] = 'ÃÜÂë'ÓÊÏäµÄÃÜÂë
fromAdd = 'xxxxxxx@163.com'Õâ¸öÒ²Ìî·¢ËÍÓÊÏ䣿
toAdd = ['someone@somehost.com', 'other@somehost.com']ÕâÀïÃæÁ½¸ö²ÎÊýʲôÒâ˼

ÎÒÖªµÀÒªÒ»¸ö163·þÎñÆ÷ Ò»¸ö·¢ËÍÓÊÏäºÍÃÜÂë »¹ÓнÓÊÜÓÊÏä
È»ºó»¹ÐèҪʲô ²»¶®°¡ û½Ó´¥¹ý Ë­Ã÷°×Äܸø˵Êé²»

ºÃ¸ßÉî¡«


¶àл ºÜÃ÷È· ÄǸötoaddÊǶ¼Áбí°É Ⱥ·¢Óõģ¿ÊÇÂð

ÒýÓÃ
¶àл ºÜÃ÷È· ÄǸötoaddÊǶ¼Áбí°É Ⱥ·¢Óõģ¿ÊÇÂð
Êǵģ¬²»¹ýEMail²»ÓÃȺ·¢Õâ¸ö´Ê£¬Ò»°ãÓ᮳­ËÍ¡¯ºÍ¡®ÃÜËÍ¡¯

·Ç³£¸Ðл


Ïà¹ØÎÊ´ð£º

python PILÄ£¿é´ò¿ªÍ¼Æ¬ÎÊÌâ

ÇëÎÊÏ£¬ÎÒµÄÊÇpython2.5°²×°ÁËPILÄ£¿é£¬È»ºó±àд³ÌÐò´ò¿ª±¾»úÉϵÄÒ»¸öͼƬʱ£¬ÎªÊ²Ã´ÀϳöÏÖ´íÎóÄØ£¬ÀÏÊÇÕÒ²»µ½Í¼Æ¬£¬´íÎóÌáʾÈçÏ£ºFile "C:\Python25\Lib\site-packages\PIL\Image.py", line 1888, in o ......

³ÏÕÐPython³ÌÐòÔ±²ÎÓë¼ÆËã»úÊé¼®³ö°æ

ÓźñµÄ¸å³ê£¬³ÏÕÐPython¼¼ÊõÈËÔ±²ÎÓë¸÷ÖÖ¼¼ÊõÊé¼®³ö°æ¡£ 
ͨ¹ý¸ÃÊé¼®£¬×÷Õß¿ÉÒԵõ½Èçϱ¨³ê£º 
1¡¢·áºñµÄ¸å³ê¡£ 
2¡¢Êé¼®Öø×÷µÄÊðÃûȨ¡£ 
3¡¢¶Ô×÷ÕߺÍÊé½øÐÐÐû´«£¬Ìá¸ß×÷ÕßÔÚ¼¼ÊõȦ×ÓÀ ......

python ͼÏñ¶à±ßÐÎÇиî

pythonµÄPIL¿â×Ô´øµÄ·½·¨Ö»ÄܽøÐоØÐεÄÇиÈç¹ûÎÒÓÐÁËÒ»¸ö¶à±ßÐθ÷¸ö¶¥µãµÄ×ø±ê£¬ÈçºÎ¶ÔÏÖÓеÄͼƬ°´ÕÕÕâ¸ö¶à±ßÐνøÐÐÇиîÄØ£¿
²»Ò»¶¨ÒªÓÃPIL¿â£¬ÈκÎÄÜʵÏÖÕâ¸ö¹¦Äܵķ½·¨¶¼ÐС£

ͼƬÇиîµÄjs²»ÊǺܶàÂð£¿
......

Çó¾ÈÇó¾ÈÇó¾ÈÒ»¶Îpython´úÂëµÄ×¢ÊÍ,¼±!

ÓÉÓÚÊǵÚÒ»´Î½Ó´¥python,Óï·¨Ò²²»¶®
µ«ÊÇÁÙʱҪÓõ½...

Çë°ïæעÊÍÒ»¶Î´úÂë...²»ÐèҪÿһ¾ä¶¼×¢ÊÍ,ÒòΪÊÇѧjavaµÄ,ËùÒÔ»ù±¾Ë¼Â·»¹ÊÇÓÐÒ»µã


#************************************************ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ