本文整理汇总了Python中Tree.html_tree方法的典型用法代码示例。如果您正苦于以下问题:Python Tree.html_tree方法的具体用法?Python Tree.html_tree怎么用?Python Tree.html_tree使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tree
的用法示例。
在下文中一共展示了Tree.html_tree方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: import Tree [as 别名]
# 或者: from Tree import html_tree [as 别名]
#!/usr/bin/env python3
import Tree
import DCC
# This script can be used to create an html list and a spreadsheet of documents below the
# specified collection. The main use of the code is to create CID lists in html and spreadsheet
# from from a set of collections containing CID files
froot = 'NFIRAOS CID'
coll = 'Collection-10609'
keyword_filter = '' # if no keyword set keyword_filter = ''
# Login to DCC
s = DCC.login(Site = 'Production')
tr = Tree.return_tree(s, coll, froot)
Tree.xls_tree(s,tr,coll,froot, Keyword = keyword_filter)
Tree.html_tree(s,tr,froot, Keyword = keyword_filter)
示例2:
# 需要导入模块: import Tree [as 别名]
# 或者: from Tree import html_tree [as 别名]
#!/usr/bin/env python3
import Tree
import DCC
# This script can be used to create an html list and a spreadsheet of documents below the
# specified collection. The main use of the code is to create CID lists in html and spreadsheet
# from from a set of collections containing CID files
froot = 'Listing of STR CID'
coll = 'Collection-10669'
# Login to DCC
s = DCC.login(Site = 'Production')
tr = Tree.return_tree(s, coll, froot)
Tree.xls_tree(s,tr,coll,froot)
Tree.html_tree(s,tr,froot)