單項選擇題

在Python中,如何檢查一個值是否是整數(shù)?()

A.isinstance(value,int)
B.type(value)==int
C.value.is_integer()
D.A和B都對

微信掃碼免費搜題