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
Ïà¹ØÎĵµ£º
£¨Å¼¶û¿´µ½£¬ÅÂÍüÁË£©
·ÂÓû§´ò¿ªä¯ÀÀÆ÷È»ºóµã»÷µÈÐÐΪȻºó»ñÈ¡½á¹û£¬ÒÔÏÂÊÇÎÒʹÓùýµÄ·½·¨Ö»ÊÇÒÀÀµÓëie²»¹ýfirefoxµÈÓ¦¸ÃÒ²ÓÐÏàÓ¦µÄµ÷Ó÷½·¨£º
˼·¾ÍÊǵ÷ÓÃieµÄcom×é¼þÈ»ºó¾ÍÊǶÔdomµÄ²Ù×÷¸úÓÃjavascript²Ù×÷domÀàËÆ£¬Ê¾·¶´úÂëÈçÏÂ
#ÌìÑĵǽµØÖ·
tianyalogin = "http://www.tianya.cn/"
tianya_user = "xxxxx"
......
(ת)[Python ѧϰ]2.5°æyield֮ѧϰÐĵÃ
ÔÚ shhgs ·¢²¼Á˹ØÓÚ¡¶ Py 2.5 what's new Ö® yield¡·Ö®ºó£¬ÔÀ´ÎÒ²»ÊÇÌرð¹Ø×¢ yield µÄÓ÷¨£¬ÒòΪ¶ÔÓÚ2.3ÖмÓÈëµÄyieldÏà¶ÔÀ´Ëµ¹¦Äܼòµ¥£¬ËüÊÇ×÷Ϊһ¸ö generator ²»¿ÉȱÉÙµÄÒ»ÌõÓï¾ä£¬Ö»Òª°üº¬ËüµÄº¯Êý¼´ÊÇÒ»¸ö generator ¡£µ«ÔÚ2.3ÖУ¬generator ²»ÄÜÖØÈ룬²»ÄÜÔÚÔËÐй ......
3. Dictionaries ×ÖµäÀàÐÍ
PythonÖУ¬×ÖµäÀàÐͲ¢²»ÊÇ˳ÐòÈÝÆ÷£¬¶øÀàËÆc++ÖеĹØÁªÈÝÆ÷(map)£¬DictionariesÖд洢µÄÊǼü/Öµ ¶Ô£¬ºÍmap²»Í¬µÄÊÇ£¬PythonµÄDictionariesÖпÉÒÔ´æÈÎÒâ¶ÔÏóÀàÐÍ¡£DictionariesÀàÐÍÒ²ÊǿɱäµÄ£¬ºÍListsÒ»Ñù£¬¿ÉÒÔÔµØÐ޸ģ¨Í¨¹ýϱêÐ޸ģ©¡£
ÏÂÃæͨ ......
1 ÄãºÃ
#´ò¿ªÐ´°¿Ú,ÊäÈë:
#! /usr/bin/python
# -*- coding: utf8 -*-
s1=input("Input your name:")
print("ÄãºÃ,%s" % s1)
'''
֪ʶµã:
* input("ij×Ö·û´®")º¯Êý:ÏÔʾ"ij×Ö·û´®",²¢µÈ´ýÓû§ÊäÈë.
......
Õâ¸ö´úÂëÊÇ»ùÓÚ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): # ......