當前位置: 首頁>>代碼示例 >>用法及示例精選 >>正文


Python ArcGIS User.folders用法及代碼示例


本文簡要介紹 python 語言中 arcgis.gis.User.folders 的用法。

用法:

property folders

返回:

List of folders represented as dictionaries. Dictionary keys include: username, folder id (id), title, and date created (created)

# Example to get name of all folders

user = User(gis, username)
folders = user.folders
for folder in folders:
    print(folder["title"])

# Example to get id of all folders

user = User(gis, username)
folders = user.folders
for folder in folders:
    print(folder["id"])

folders 屬性在調用時會檢索用戶文件夾的列表。

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.gis.User.folders。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。