菜鸟笔记
提升您的技术认知

python 判断一个数是整数还是小数

a=81**0.5
s=str(a).split('.')
if float(s[1])==0:
    print('整数')
else :print('小数')