([toStr(e)+'\n' for e in employeeList] uses Jython's list comprehension to turn each result into a line written in slaries.txt with the lambda function toStr.
([toStr(e)+'\n'for ein employeeList]) 通过Jython的列表理解,用lambda 函数 toStr将每个结果变成 slaries.txt中的一行。
([toStr(e)+'\n' for e in employeeList] uses Jython's list comprehension to turn each result into a line written in slaries.txt with the lambda function toStr.
([toStr(e)+'\n'for ein employeeList]) 通过Jython的列表理解,用lambda 函数 toStr将每个结果变成 slaries.txt中的一行。
应用推荐