摘要: 转载:https://www.cnblogs.com/kebibuluan/p/13265345.html 阅读全文
posted @ 2020-12-02 15:42 路要一步一步走 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 判断一个数是否是小数 判断一个数是否为小数 1、有且仅有一个小数点 2、小数点的左边可能为正数或负数 3、小数点的右边为正数 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 def is_float(str): if str.count('.') == 1: #小数有且 阅读全文
posted @ 2020-12-02 14:23 路要一步一步走 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.runoob.com/java/number-sqrt.html 阅读全文
posted @ 2020-12-02 13:55 路要一步一步走 阅读(232) 评论(0) 推荐(0) 编辑