Python算法 — 判断字符串是否是合法标识符
代码:import rex = []for i in range(6): s = raw_input() x.append(s)for s in x: if re.match('[A-Za-z_]', s): if s in ('and', 'as', 'assert', 'break', 'class',\ 'continue', 'def', 'del', 'elif', 'else', 'except',\