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

python rss½âÎöÓëÉú³É

 PyRSS2Gen £ºrssÉú³É 
ÏÂÔصØÖ·£ºhttp://www.dalkescientific.com/Python/PyRSS2Gen-1.0.0.tar.gz 
Àý×Ó£º
Java´úÂë 
import datetime  
import PyRSS2Gen  
  
rss = PyRSS2Gen.RSS2(  
   title = "Andrew's PyRSS2Gen feed",  
   link = "http://www.dalkescientific.com/Python/PyRSS2Gen.html",  
   description = "The latest news about PyRSS2Gen, a "  
                 "Python library for generating RSS2 feeds",  
  
   lastBuildDate = datetime.datetime.now(),  
  
   items = [  
      PyRSS2Gen.RSSItem(  
        title = "PyRSS2Gen-0.0 released",  
        link = "http://www.dalkescientific.com/news/030906-PyRSS2Gen.html",  
        description = "Dalke Scientific today announced PyRSS2Gen-0.0, "  
                      "a library for generating RSS feeds for Python.  ",  
        guid = PyRSS2Gen.Guid("http://www.dalkescientific.com/news/"  
                         "030906-PyRSS2Gen.html"),  
      &n


Ïà¹ØÎĵµ£º

python½Å±¾Ä£Äâä¯ÀÀÆ÷

£¨Å¼¶û¿´µ½£¬ÅÂÍüÁË£©
·ÂÓû§´ò¿ªä¯ÀÀÆ÷È»ºóµã»÷µÈÐÐΪȻºó»ñÈ¡½á¹û£¬ÒÔÏÂÊÇÎÒʹÓùýµÄ·½·¨Ö»ÊÇÒÀÀµÓëie²»¹ýfirefoxµÈÓ¦¸ÃÒ²ÓÐÏàÓ¦µÄµ÷Ó÷½·¨£º
˼·¾ÍÊǵ÷ÓÃieµÄcom×é¼þÈ»ºó¾ÍÊǶÔdomµÄ²Ù×÷¸úÓÃjavascript²Ù×÷domÀàËÆ£¬Ê¾·¶´úÂëÈçÏÂ
#ÌìÑĵǽµØÖ·
tianyalogin = "http://www.tianya.cn/"
tianya_user = "xxxxx" ......

[Python ѧϰ]2.5°æyield֮ѧϰÐĵÃ

(ת)[Python ѧϰ]2.5°æyield֮ѧϰÐĵÃ
 
ÔÚ shhgs ·¢²¼Á˹ØÓÚ¡¶ Py 2.5 what's new Ö® yield¡·Ö®ºó£¬Ô­À´ÎÒ²»ÊÇÌرð¹Ø×¢ yield µÄÓ÷¨£¬ÒòΪ¶ÔÓÚ2.3ÖмÓÈëµÄyieldÏà¶ÔÀ´Ëµ¹¦Äܼòµ¥£¬ËüÊÇ×÷Ϊһ¸ö generator ²»¿ÉȱÉÙµÄÒ»ÌõÓï¾ä£¬Ö»Òª°üº¬ËüµÄº¯Êý¼´ÊÇÒ»¸ö generator ¡£µ«ÔÚ2.3ÖУ¬generator ²»ÄÜÖØÈ룬²»ÄÜÔÚÔËÐй ......

pythonѧϰ

3. Dictionaries ×ÖµäÀàÐÍ
     PythonÖУ¬×ÖµäÀàÐͲ¢²»ÊÇ˳ÐòÈÝÆ÷£¬¶øÀàËÆc++ÖеĹØÁªÈÝÆ÷(map)£¬DictionariesÖд洢µÄÊǼü/Öµ ¶Ô£¬ºÍmap²»Í¬µÄÊÇ£¬PythonµÄDictionariesÖпÉÒÔ´æÈÎÒâ¶ÔÏóÀàÐÍ¡£DictionariesÀàÐÍÒ²ÊǿɱäµÄ£¬ºÍListsÒ»Ñù£¬¿ÉÒÔÔ­µØÐ޸ģ¨Í¨¹ýϱêÐ޸ģ©¡£
    ÏÂÃæͨ ......

Python 3.x (1):ÈëÃÅ

 
1 ÄãºÃ
#´ò¿ªÐ´°¿Ú,ÊäÈë:
#! /usr/bin/python
# -*- coding: utf8 -*- 
s1=input("Input your name:")
print("ÄãºÃ,%s" % s1)
'''
֪ʶµã:
    * input("ij×Ö·û´®")º¯Êý:ÏÔʾ"ij×Ö·û´®",²¢µÈ´ýÓû§ÊäÈë.
    ......

python °ïÖúÎĵµ²é¿´

 Õâ¸ö´úÂëÊÇ»ùÓÚpython3.0дµÄ£¬ÓÐÐí¶à²»ÍêÉƵĵط½£¬Çë×ÔÒÑÐ޸ġ£
# coding: utf-8
from tkinter import *
root = Tk()
root.title("python3.0²éѯ")
#root.minsize(800,600)
#Ìî³äÎÞÓÿռä
Label(root).grid(ipady=5)
#11Ãæ°å
class Frame11:
    def __init__(self, root):   # ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ