标签: python for-loop assign
我有字典:
meas_tissues = {'a':1, 'b': 1.4, 'c':2}
我想获取meas_a = 1,meas_b=1.4,meas_c = 2,但是以下代码返回“ can't assign to function call”。
meas_a = 1
meas_b=1.4
meas_c = 2
can't assign to function call
for tissue in meas_tissues: str('meas_'+tissue)=meas_tissues[tissue]
我该怎么办?