python判断参数是否是合法标识符 import stringdef is_valid_identifier(param): alphas = string.letters + '_' nums = string.digits if len(param) > 1: if param[0] not in alphas: print 'invalid:fi... python 2023-11-21 46 点赞 0 评论 69 浏览