我有跟随2D数组
when (value) {
is String, is Int, is Double, is Boolean -> p.put(key, value)
else -> throw BBIllegalOperationException("...")
}
我希望每个水果名单都带有计数,并使用python代码打印它。那么我如何读取上面的数组来提取数据(在for循环中)
我需要打印出来
name_list = [['Orange', '5'],['Mango','6'],['Banana','3']]
答案 0 :(得分:2)
您可以像这样解压缩列表:
String query=" SELECT DISTINCT orders.orderer, orders.start_date, order_type.name, concept_name.name "
+ "FROM orders, order_type, concept_name "
+ "WHERE orders.order_type_id = order_type.order_type_id AND concept_name.concept_name_id = orders.concept_id AND orders.patient_id ='"+PatientId+"'";
答案 1 :(得分:0)
试试这个:
<TargetFramework>netcoreapp2.0</TargetFramework>