<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[RSS Feed]]></title><description><![CDATA[RSS Feed]]></description><link>http://direct.ecency.com</link><image><url>http://direct.ecency.com/logo512.png</url><title>RSS Feed</title><link>http://direct.ecency.com</link></image><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 06:59:39 GMT</lastBuildDate><atom:link href="http://direct.ecency.com/created/anylyse/rss.xml" rel="self" type="application/rss+xml"/><item><title><![CDATA[PyH源码解析（6）——完结篇]]></title><description><![CDATA[这一篇是精华，基本上不用阅读之前的5篇，只看这一篇就足够了。 Tag对象 PyH的核心就是Tag对象，Tag对象属性有： str tagname：这个就是tag对象的tag名字。比如<div>对象，其名字就div。但是有一些Tag对象没有名字，当然真实的HTML是没有的，在实现代码中，没有Tag名字的对象表示它是一个容器对象，存放的是子Tag的序列，表示若干兄弟Tag的列表。 bool]]></description><link>http://direct.ecency.com/cn/@brysj22952/pyh-6</link><guid isPermaLink="true">http://direct.ecency.com/cn/@brysj22952/pyh-6</guid><category><![CDATA[cn]]></category><dc:creator><![CDATA[brysj22952]]></dc:creator><pubDate>Sun, 12 Aug 2018 09:01:42 GMT</pubDate></item><item><title><![CDATA[PyH源码解析（5）]]></title><description><![CDATA[检索子Tag对象或者内容 一个Tag对象如果有多个子Tag对象或者内容，那么怎么获得其中的某个子Tag对象或内容。如果Tag对象有ID，则使用其ID作为索引；如果没有设置ID，则使用Tag的名字作为ID，如果有多个相同名字的Tag，则其ID依次在后面增加上001、002、...。需要注意的是，则只是子Tag对象的索引ID，不是Tag对象的属性ID。如下面示例： #例1： >>>]]></description><link>http://direct.ecency.com/cn/@brysj22952/pyh-5</link><guid isPermaLink="true">http://direct.ecency.com/cn/@brysj22952/pyh-5</guid><category><![CDATA[cn]]></category><dc:creator><![CDATA[brysj22952]]></dc:creator><pubDate>Sat, 11 Aug 2018 10:16:54 GMT</pubDate></item><item><title><![CDATA[PyH源码解析（4）]]></title><description><![CDATA[增加兄弟Tag对象 这个实际上就是Tag对象的序列，如下所示： >>> a=div('a1')+div('a2')+div('a3') >>> print(a) <div> a1 </div> <div> a2 </div> <div> a3 </div>]]></description><link>http://direct.ecency.com/cn/@brysj22952/pyh-4</link><guid isPermaLink="true">http://direct.ecency.com/cn/@brysj22952/pyh-4</guid><category><![CDATA[cn]]></category><dc:creator><![CDATA[brysj22952]]></dc:creator><pubDate>Sat, 11 Aug 2018 08:31:39 GMT</pubDate></item><item><title><![CDATA[PyH源码解析（3）]]></title><description><![CDATA[添加Tag对象内容 通过构造函数传递Tag内容 用户使用场景如下： >>> a=div('test') >>> print(a) <div> test </div> 实现原理]]></description><link>http://direct.ecency.com/cn/@brysj22952/pyh-3</link><guid isPermaLink="true">http://direct.ecency.com/cn/@brysj22952/pyh-3</guid><category><![CDATA[cn]]></category><dc:creator><![CDATA[brysj22952]]></dc:creator><pubDate>Fri, 10 Aug 2018 13:40:27 GMT</pubDate></item><item><title><![CDATA[PyH源码解析（2）]]></title><description><![CDATA[生成Tag对象的属性 用户代码如下所示： >>> a=div(a1='a1') >>> print(a) <div a1="a1"> </div> 在内部实现上，Tag对象的属性存放在一个字典中，字典的名字是attr，原来的名字是attributes，我觉得太长了，修改了一下。核心函数如下： #把字典变成字符串，形如：']]></description><link>http://direct.ecency.com/cn/@brysj22952/pyh-2</link><guid isPermaLink="true">http://direct.ecency.com/cn/@brysj22952/pyh-2</guid><category><![CDATA[cn]]></category><dc:creator><![CDATA[brysj22952]]></dc:creator><pubDate>Thu, 09 Aug 2018 08:15:33 GMT</pubDate></item></channel></rss>