Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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½Ì³ÌÖÐʹÓÃÔ´ÎļþµÄÎÊÌâ~~

ʹÓÃÔ´Îļþ

#!/usr/bin/python
# Filename : helloworld.py
print 'Hello World'

ÎÒÔõôҲ¿´²»¶®£¡Ö»ÊÇ×îºóÒ»ÐÐÎÒÖªµÀ~~Ç°ÃæÁ½ÐÐÊÇʲôÒâ˼ÄØ£¿
½Ì³ÌÉÏ˵Èç¹ûÄãʹÓÃIDLE£¬ÇëʹÓò˵ ......

PythonÖеÄUnicodeÔÚDelphiÈçºÎ»¹Ô­³ÉGb2312£¿

ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ

ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô­³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......

python 3.xµÄifÓï¾ä

>>> x=-1
>>> if x>0:
print ('11')

>>> else:

SyntaxError: invalid syntax (<pyshell#20>, line 1)
ÍøÉÏËѵÄÒ²ÊÇ£º
>>> x=int(input("Please ent ......

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

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

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

pythonÈçºÎ×¥win32³ÌÐòÖÐlistboxµÄÐÅÏ¢

±ÈÈçÎÒÐèÒªÓÃpython ¶Ôwin32³ÌÐò½øÐÐÒ»¶¨µÄ¿ØÖÆ

¶ÔtextboxÊäÈëÒ»´®×Ö·û´®
°´Ä³¸öbotton

¶ÔlistboxÀïµÄµÄÄÚÈݶÁÈ¡£¬´æ³É×Ö·û´®


¸ÃÈçºÎ²Ù×÷£¿
»òÕßÄÄÀïÓÐÎĵµÀý×Ó£¿

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