📜  pyton 如何判断字符串是 int 还是 string - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:09.477000             🧑  作者: Mango
代码示例1
def RepresentsInt(s):
try:
int(s)
return True
except ValueError:
return False