使用Android中的2d数组发送多个图像以使用改造将数据发布到服务器

时间:2019-01-23 12:58:47

标签: java android multidimensional-array retrofit retrofit2

我必须在Android中使用# convert series to categorical df['country'] = df['country'].astype('category') # extract labels others = df['country'].value_counts().index[5:] label = 'Other' # apply new category label df['country'] = df['country'].cat.add_categories([label]) df['country'] = df['country'].replace(others, label) 数组上传画廊图像。我需要为此目的使用哈希映射,但是我很困惑如何做到这一点,任何人都可以为此目的建议任何解决方案或示例代码。

1 个答案:

答案 0 :(得分:0)

您可以像这样创建您的哈希图

HashMap<String, String> images=new HashMap<String, String>();
meMap.put("image name","image path");

您可以创建这样的键值对,也可以根据您的要求进行更改,但请注意,对于每个键,一件事键应该是唯一的,即图像名称每次都应该不同,因为如果再次插入相同的键,则其值将被覆盖