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ÊǶ¼Áбí°É Ⱥ·¢Óõģ¿ÊÇÂð
Êǵģ¬²»¹ýEMail²»ÓÃȺ·¢Õâ¸ö´Ê£¬Ò»°ãÓ᮳ËÍ¡¯ºÍ¡®ÃÜËÍ¡¯
·Ç³£¸Ðл
Ïà¹ØÎÊ´ð£º
ʹÓÃÔ´Îļþ
#!/usr/bin/python
# Filename : helloworld.py
print 'Hello World'
ÎÒÔõôҲ¿´²»¶®£¡Ö»ÊÇ×îºóÒ»ÐÐÎÒÖªµÀ~~Ç°ÃæÁ½ÐÐÊÇʲôÒâ˼ÄØ£¿
½Ì³ÌÉÏ˵Èç¹ûÄãʹÓÃIDLE£¬ÇëʹÓò˵ ......
ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ
ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......
>>> x=-1
>>> if x>0:
print ('11')
>>> else:
SyntaxError: invalid syntax (<pyshell#20>, line 1)
ÍøÉÏËѵÄÒ²ÊÇ£º
>>> x=int(input("Please ent ......
pythonµÄPIL¿â×Ô´øµÄ·½·¨Ö»ÄܽøÐоØÐεÄÇиÈç¹ûÎÒÓÐÁËÒ»¸ö¶à±ßÐθ÷¸ö¶¥µãµÄ×ø±ê£¬ÈçºÎ¶ÔÏÖÓеÄͼƬ°´ÕÕÕâ¸ö¶à±ßÐνøÐÐÇиîÄØ£¿
²»Ò»¶¨ÒªÓÃPIL¿â£¬ÈκÎÄÜʵÏÖÕâ¸ö¹¦Äܵķ½·¨¶¼ÐС£
ͼƬÇиîµÄjs²»ÊǺܶàÂð£¿
......
±ÈÈçÎÒÐèÒªÓÃpython ¶Ôwin32³ÌÐò½øÐÐÒ»¶¨µÄ¿ØÖÆ
¶ÔtextboxÊäÈëÒ»´®×Ö·û´®
°´Ä³¸öbotton
¶ÔlistboxÀïµÄµÄÄÚÈݶÁÈ¡£¬´æ³É×Ö·û´®
¸ÃÈçºÎ²Ù×÷£¿
»òÕßÄÄÀïÓÐÎĵµÀý×Ó£¿
·Ç³£¸Ðл
......