#!/usr/bin/python3 str = "this2016" print (str.isnumeric()) str = "23443434" print (str.isnumeric())
【Linux常用命令速查手册】关注【入门小站】,后台回复 「1001」 自取。