📜  是数字 python 代码示例

📅  最后修改于: 2022-03-11 14:47:19.481000             🧑  作者: Mango

代码示例6
def RepresentsInt(s):
    try: 
        int(s)
        return True
    except ValueError:
        return False