摘要: #将float类型转化成有固定总位数的数值。 from decimal import * getcontext().prec=5 Decimal('107.23')/Decimal('0.9726') a=str(Decimal('107.23')/Decimal('0.9726')) 阅读全文
posted @ 2020-05-11 17:07 buptqq 阅读(489) 评论(0) 推荐(0)