Python——格式输出,基本数据

一、问题点(有待解决)

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

from decimal import Decimal

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

 

 

原文地址:https://www.cnblogs.com/kekefu/p/12374528.html