我有一个基本的要求,我需要生成国家的基础上选择的国家在ERP员工模块。根据国家的情况把各州都弄来是好的。但是我得到的响应是[u'alaska']
格式的。我只需要alaska
以下是我的实现:
cr.execute("select name from res_country where id=%d" %swap_addresses)
countryName = str(map(lambda x:x[0], cr.fetchall()))
return {'value':{'states': str(countryName)}}
Tags:
目前没有回答
相关问题 更多 >
编程相关推荐