这是我目前的代码:
data = [''.join(sorted(e)) for e in d.split() for d in data.splitlines()]
我想转换:
'''zax xza admbc lvpzfeh auxn rwasj
kebx eild nrskdr meja jxczomh gcne'''
要:
[['axz','axz','abcdm','anux','ajrsw']['bekx','edil','dknrrs','aejm','cegn']]
我一直收到错误:
data = [''.join(sorted(e)) for e in d.split() for d in data.splitlines()]
NameError: name 'd' is not defined
非常感谢任何帮助;)