首页 > 技术文章 > Python——格式输出,基本数据

kekefu 2020-02-27 21:30 原文

一、问题点(有待解决)

1.Python中只有浮点数,20和20.0是否一样?

 

 

from decimal import Decimal

 a = Decimal('1.3')
round()
参考文章来源:https://www.cnblogs.com/herbert/p/3402245.html
 
2.格式化输出,format
 
二、测试出错题

 

 

 

 

 

推荐阅读