Results of 1 - 2 of about 2 for slideshow (0.002 sec.)
- xml.dom.minidom --- 最小限の DOM の実装 — Python 3.14.8 ドキュメント 11228
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 構造化マークアップツール » xml.dom.minidom --- 最小限の DOM の実装 テーマ 自動 ライト ダーク | xml.dom.minidom --- 最小限の DOM の実
...なり現実的な例です。特にこの例に関しては、DOM の柔軟性をあまり活用してはいません。 import xml.dom.minidom document = """ \ <slideshow> <title>Demo slideshow</title> <slide><title>Slide title</title> <point>This is a demo</point> <point>Of a program for pro...her demo slide</title> <point>It is important</point> <point>To have more than</point> <point>one slide</point> </slide> </slideshow> """ dom = xml . dom . minidom . parseString ( document ) def getText ( nodelist ): rc = [] for node in nodelist : if node.... nodeType == node . TEXT_NODE : rc . append ( node . data ) return '' . join ( rc ) def handleSlideshow ( slideshow ): print ( "<html>" ) handleSlideshowTitle ( slideshow . getElementsByTagName ( "title" )[ 0 ]) slides = slide... - https://man.mtool.work/python/3.14/library/xml.dom.minidom.html
- xml.dom.minidom --- 最小限の DOM の実装 — Python 3.14.8 ドキュメント 7485
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 構造化マークアップツール » xml.dom.minidom --- 最小限の DOM の実装 テーマ 自動 ライト ダーク | xml.dom.minidom --- 最小限の DOM の実
...なり現実的な例です。特にこの例に関しては、DOM の柔軟性をあまり活用してはいません。 import xml.dom.minidom document = """ \ <slideshow> <title>Demo slideshow</title> <slide><title>Slide title</title> <point>This is a demo</point> <point>Of a program for pro...her demo slide</title> <point>It is important</point> <point>To have more than</point> <point>one slide</point> </slide> </slideshow> """ dom = xml . dom . minidom . parseString ( document ) def getText ( nodelist ): rc = [] for node in nodelist : if node.... nodeType == node . TEXT_NODE : rc . append ( node . data ) return '' . join ( rc ) def handleSlideshow ( slideshow ): print ( "<html>" ) handleSlideshowTitle ( slideshow . getElementsByTagName ( "title" )[ 0 ]) slides = slide... - https://man.mtool.work/python/3.14/library/xml.dom.minidom.html
PREV
1
NEXT