因为python将这两种默认为浮点数如结果为0.9和3.0 如果要求. ... print(isinstance(num,float))#判断是否为浮点数print(isinstance(num,int))#判断 ...
確定! 回上一頁