如何判断python合法的标识符_python判断参数是否是合法标识符
import stringdef is_valid_identifier(param):alphas = string.letters + ‘_‘nums = string.digitsif len(param) > 1:if param[0] not in alphas:print ‘invalid:first symbol must be alphabetic‘else:for othe...