1、str转decimal b=u'45' print(type(b)) c=decimal.Decimal(b) print(type(c)) 结果 2、decimal转str d=str(c) print(type(d))