今天碰见了这个问题,于是整理一下分享出来. 首先是解决我问题的方法,使用isinstance(i,float/int)判断: i=9,j=1.3 >>isinstance(i,int) >>True ...
確定! 回上一頁