-
Python 编程开发 实用经验和技巧大放送
文章目录一、小数保留指定位小数1.%f 方法2.format函数3.round()函数4.直接截断二、判断变量的数据类型1.type():2.isinstance()3.__class__.__name__属性三、Python中的类方法(@
文章目录一、小数保留指定位小数1.%f 方法2.format函数3.round()函数4.直接截断二、判断变量的数据类型1.type():2.isinstance()3.__class__.__name__属性三、Python中的类方法(@