elementtree(元素樹)。
elementtree是xml解析庫,已經在python2.5之後被包括在標準庫中。
elementtree感覺就像乙個輕量級的dom,具有方便使用、十分友好的api。除了**可復用之外,它執行速度快,消耗記憶體較少。這裡我們重點推薦使用elementtree。如果需要使用xml解析器,不妨先試一試elementtree。
tar zxvf elementtree-1.2.6-20050316.tar.gz
cd elementtree-1.2.6-20050316
chmod +x *.py
./setup.py install
[root@gd37vm01 elementtree-1.2.6-20050316]# ./setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/elementtree
copying elementtree/elementinclude.py -> build/lib/elementtree
copying elementtree/sgmlopxmltreebuilder.py -> build/lib/elementtree
copying elementtree/elementtree.py -> build/lib/elementtree
copying elementtree/elementpath.py -> build/lib/elementtree
copying elementtree/xmltreebuilder.py -> build/lib/elementtree
copying elementtree/__init__.py -> build/lib/elementtree
copying elementtree/******xmltreebuilder.py -> build/lib/elementtree
copying elementtree/tidyhtmltreebuilder.py -> build/lib/elementtree
copying elementtree/tidytools.py -> build/lib/elementtree
copying elementtree/******xmlwriter.py -> build/lib/elementtree
copying elementtree/htmltreebuilder.py -> build/lib/elementtree
running install_lib
copying build/lib/elementtree/elementinclude.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/sgmlopxmltreebuilder.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/elementtree.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/elementpath.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/xmltreebuilder.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/__init__.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/******xmltreebuilder.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/tidyhtmltreebuilder.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/tidytools.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/******xmlwriter.py -> /usr/lib/python2.4/site-packages/elementtree
copying build/lib/elementtree/htmltreebuilder.py -> /usr/lib/python2.4/site-packages/elementtree
具體使用:
element 安裝使用
1.安裝 cd到當前專案 執行 npm i element ui s2.引入 在 main.js 中寫入以下內容 全域性引入 import elementui from element ui import element ui lib theme chalk index.css vue.use el...
element使用心得
資料過濾,filter過濾器 上述,使用 vue 的過濾器,但是在 中無法直接使用table的prop屬性,需要在template裡面新增過濾器。show overflow tooltip,超出部分隱藏,懸停顯示 開啟 行屬性show overflow tooltip highlight curre...
element使用筆記
目錄 element ui 上傳到達一定數量後隱藏上傳按鈕 element ui會用到el dialog做為彈窗,但這個彈窗的寬度預設為50 data form cascader設定預設值在專案中使用了element的el upload上傳元件,需求是上傳一張而已,但是發現上傳完以後一張後在旁邊再生...