To check if a python variable is a number (int or float par example), a solution is to use isinstance: x = 1.2 isinstance(x, (int, float)). returns here
確定! 回上一頁