例如,我的字符串python表达式为:
res = '' for item in object.order_line:res = res + item.product_id.name + ','result = res[:-1]
所以我想在执行我的python表达式时获得product_id.name的值,
res = res + item ['product_id'] ['name'] +','