python¸ù¾Ýfeedparser¶ÁÈ¡xmlµÄʱ¼ä
feedparserµ¼ÈëÕâ¸ö°ü ¶ÁxmlµÄtitle£¬link ¶¼Ã»ÎÊÌâ ¾ÍÊÇʱ¼ä¶ÁÈ¡²»³öÀ´
´íÎó£º
print d['feed']['%s lastBuildDate']
return UserDict.__getitem__(self, realkey)
KeyError: '%s lastBuildDate'
Õâ¸öÊÇÔõô»ØÊ Ôõô ´¦Àí
'%s lastBuildDate'Óï·¨ÉÏÓÐÎÊÌâ°É...
Ŷ ±§Ç¸ ·¢´íÁË Õâ¸öÊÇÎÒ²âÊÔʱºòŪµÄ
print d['feed']['lastBuildDate']ÕâôдµÄʱºò¾ÍÒì³£ÁË
ÄÜ°ïæ¿´¿´ÔÒòÂð Õý³£½âÎö±ðµÄ±êÇ©¶¼Ã»ÎÊÌâ ÊDz»ÊÇÒòΪ±êÇ©ÀïÃæÓпոñµÄÔÒò
Ëû¸ú±ðµÄ±êÇ©µÄÇø±ðΨһ¾Í²îÔÚÕâÁË ¿ÉÊDz»ÖªµÀÔõô´¦Àí¿Õ¸ñ²ÅÄÜÈÃËûÕý³£½âÎö Ò²²»ÖªµÀÏëµÄ¶Ô²»
ÓÐûÓж®µÄ°ïæָÌõÃ÷·
print d['feed']['lastBuildDate']
´íÎó
return UserDict.__getitem__(self, realkey)
KeyError: 'lastBuildDate'
ÊÇÕâ¸ö
mark....
{{
Ïà¹ØÎÊ´ð£º
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
ÈçÌ⣬ÓÐûÓÐÕâÑùµÄphp´úÂë¡£ÎÒÏÖÔÚÏ뽫excelµÄÄÚÈݲåÈëmysqlÊý¾Ý¿â£¬Ï£Íû¿ÉÒÔ½«excelת³Éxml,È»ºó½âÎöxml²åÈëÊý¾Ý¿âÖС£Èç¹ûÓÐÕâÑùµÄ´úÂ룬ÉõÖÁÊÇÓÐÃûµÄ´úÂ룬һ¶¨Òª¸æËßÎÒ°¡¡£
ÏȶÁ excel => È»ºóÉú³É xml = ......
ÎÒÏÖÔÚÒª×öÒ»¸öÓÃc#×öµÄ£¬ÀûÓÃsocket´«ÊäXMLÎļþ£¬²¢½â¶ÁXMLÎļþ£¬Ö´ÐÐXMLÀïÃæµÄÏà¹Ø²Ù×÷Ö®ºó£¬°Ñ½á¹û¶¯Ì¬µØдÈëXMLÎļþÀÔÙ´«»ØÈ¥£¡×îºÃÄܸø¸ö°¸Àý¿´¿´£¬¼±¼±¼±°¡!!!
ллÁË£¡
Ôõô¸ö½âÎö·¨£¿
1¡¢.net Romti ......