我是靠谱客的博主 奋斗蜜粉,这篇文章主要介绍2020-11-09,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(56)

评论列表共有 0 条评论

立即
投稿
返回
顶部