import os import arcpy file = r"somepath\pdf.pdf" if os.path.isfile(file): # exists - get a new name for the pdf file = arcpy.CreateUniqueName(file)
arcpy.env.overwriteOutput = True # or 1
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.