ListPrinterNames (arcpy)
摘要
Returns a list of available printer names.
语法
ListPrinterNames ()
数据类型 | 说明 |
String |
Returns a Python list containing the printer names available to the script. |
代码实例
ListPrinterNames example
Returns a Python list of printer names available to session.
import arcpy
# Get a list of printer names
#
printerList = arcpy.ListPrinterNames()
# Output printer names to Python window
#
for printer in printerList:
print printer
9/15/2013