ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS for Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

ListEnvironments

  • Résumé
  • Syntaxe
  • Exemple de code

Résumé

The ListEnvironments function returns a list of geoprocessing environment names.

Syntaxe

ListEnvironments ({wild_card})
ParamètreExplicationType de données
wild_card

The wild_card limits the results returned. If no wild_card is specified, all values are returned.

import arcpy

# A wild_card of "*workspace" will return a list including the 
#   workspace and scratchWorkspace environment names
arcpy.ListEnvironments("*workspace")
String

Valeur renvoyée

Type de donnéesExplication
String

The list returned from the function containing the geoprocessing environment variable names, optionally limited by a wild card filter.

Exemple de code

ListEnvironments example

Lists the environment variable name and current value.

import arcpy

environments = arcpy.ListEnvironments()

# Sort the environment names
environments.sort()

for environment in environments:
    # Format and print each environment and its current setting.
    # (The environments are accessed by key from arcpy.env.)
    print("{0:<30}: {1}".format(environment, arcpy.env[environment]))

Rubriques connexes

  • Utilisation de paramètres d'environnement dans Python
  • ClearEnvironment
  • GetSystemEnvironment
  • ResetEnvironments
  • Affichage des outils, des boîtes à outils et des paramètres d'environnement

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2019 Esri. | Confidentialité | Légal