服务器错误集合

1、unsupported operand type(s) for *: 'float' and 'decimal.Decimal'

from decimal import Decimal
coef = Decimal(float(dt[0][0]))   #将浮点型转化为精度型

oracle转化的数据为精度型,要求存储进数据表的为浮点型

直接float()

2、'tuple' object does not support item assignment

元祖只能看不能改

posted @ 2019-11-22 15:07  齐天大圣打妖怪  阅读(368)  评论(0编辑  收藏  举报