Representation of multiple values in a parameter in Python

Source: Internet
Author: User

Today, when writing a Python script, the data management-generalization-dissolve tool is called, and the parameters for operation in ArcGIS are set as follows:

If the fused field has only one good thing to do, if there are more than one fusion field to express, see the sample code in the Help documentation to understand:

So, I get all the fields here, eliminate the unwanted FID, OBJECTID, SHAPE, Hape_length, and Shape_area, and use the string manipulation function to get: ["NAME", "CODE"] such input should be no problem, but actually error, I can't find ["NAME", "CODE"] field, so why is it possible in the sample code?

I remember when I called GP in C #, if I encountered multiple values in one parameter, separated by semicolons, I did it once in the ArcGIS tool, with the following message:

The original with a semicolon on the line, try it, but also.

Representation of multiple values in a parameter in Python

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.