import arcpy in_features = "c:/base/transport.gdb/roads" try: # Note: CopyFeatures will always fail if the input and output are # the same feature class arcpy.CopyFeatures_management(in_features, in_features) except arcpy.ExecuteError: print arc
eclipse中python脚本用默认的字体和大小,注释是中文的也看不清楚,改一下字体吧 windows-preferences-python-editor-colors and fonts 其实上一步有点多余,直接又返回到windows-preferences-general-appearance-colors and ronts设置中basic目录下的text fonts,即可设置自己想要的字体