</>复制代码 · def is_number(str): · try: · # 因为使用float有一个例外是"NaN" · if str=="NaN": · return False · float(str) · return True · except ...
確定! 回上一頁