def isNum(q):
if type(eval(q)) == type(1) or type(eval(q)) == type(1.1) or type(eval(q)) == type(12.3+4j):
return True
else:
return False
def main():
a = input("请输入要输入的字符串:")
print(isNum(a))
try:
main()
except NameError:
print("False")
最后
以上就是奋斗蜜粉最近收集整理的关于2020-11-09的全部内容,更多相关2020-11-09内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复