s = "55p"" print(s.isdigit()) # False s2 = "5568" print(s2.isdigit()) # True 转载于:https://www.cnblogs.com/jack20181017/p/9900180.html