也就这样, - python杂记2 的评论 https://type.so/python/python-tips-1.html 判断是否为数字isdigit()的话,里面不能有小数点。def is_number(s): try: n=str(float(s)) if n == "n...